projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72a442
)
i965: Update state before checking for fallbacks in brw_try_draw_prims.
author
Eric Anholt
<eric@anholt.net>
Mon, 15 Dec 2008 21:25:20 +0000
(13:25 -0800)
committer
Eric Anholt
<eric@anholt.net>
Mon, 15 Dec 2008 21:34:07 +0000
(13:34 -0800)
This got flipped around in
7855b2aef6bd9e9c2d73260b5cd166159b2525c6
.
Bug #18907. Thanks to idr for pointing me at a nicer testcase than blender.
src/mesa/drivers/dri/i965/brw_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_draw.c
b/src/mesa/drivers/dri/i965/brw_draw.c
index c3a26fc82eb71f132b203b41187015e82509a8ba..785fb784ca999902f5a5da9ee384ac378aa3e844 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_draw.c
+++ b/
src/mesa/drivers/dri/i965/brw_draw.c
@@
-309,12
+309,12
@@
static GLboolean brw_try_draw_prims( GLcontext *ctx,
if (first_time || (brw->state.dirty.brw & BRW_NEW_PRIMITIVE)) {
first_time = GL_FALSE;
+ brw_validate_state(brw);
+
/* Various fallback checks: */
if (brw->intel.Fallback)
goto out;
- brw_validate_state(brw);
-
/* Check that we can fit our state in with our existing batchbuffer, or
* flush otherwise.
*/