Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1054)

Issue 3262041: glGenerateMipmap now does not force textures to become render targets.... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by apatrick1
Modified:
13 years, 5 months ago
Reviewers:
dgkoch
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

glGenerateMipmap now does not force textures to become render targets. For textures that are not already render targets, use the CPU to filter them and mark them as dirty. I tested it by modifying the "mip_map_2d" demo to call glGenerateMipmap instead of generating the mipmaps itself. I also used the debugger to force it to take the render target path and verified that it still worked. We've been having problems with the display being reset when video memory pressure is heavy with one of our demos. This patch made a noticable improvement on Vista but I don't think it will necessarily help on XP. Committed: http://code.google.com/p/angleproject/source/detail?r=490

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -30 lines) Patch
M src/libGLESv2/Texture.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/libGLESv2/Texture.cpp View 1 4 chunks +83 lines, -30 lines 0 comments Download

Messages

Total messages: 6
apatrick1
Hi Daniel, Another patch for you. Thanks, Al http://codereview.appspot.com/3262041/diff/1/src/libGLESv2/Texture.cpp File src/libGLESv2/Texture.cpp (right): http://codereview.appspot.com/3262041/diff/1/src/libGLESv2/Texture.cpp#newcode1668 src/libGLESv2/Texture.cpp:1668: if ...
13 years, 5 months ago (2010-11-22 23:24:40 UTC) #1
apatrick1
13 years, 5 months ago (2010-11-23 02:05:02 UTC) #2
dgkoch
This (obviously) adds more of a dependency on D3DX. Not necessary a problem, but something ...
13 years, 5 months ago (2010-11-23 21:44:54 UTC) #3
dgkoch
This (obviously) adds more of a dependency on D3DX. Not necessary a problem, but something ...
13 years, 5 months ago (2010-11-23 21:45:10 UTC) #4
apatrick1
I put together a patch for the npot extension a while back but I didn't ...
13 years, 5 months ago (2010-11-23 21:58:58 UTC) #5
dgkoch
13 years, 5 months ago (2010-11-23 22:02:12 UTC) #6
yeah, I found that patch again.

LGTM now.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b