projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3faf56f
)
i965: Add a note about an unsafe-looking state check.
author
Eric Anholt
<eric@anholt.net>
Sat, 22 Oct 2011 02:08:55 +0000
(19:08 -0700)
committer
Eric Anholt
<eric@anholt.net>
Sat, 29 Oct 2011 19:15:59 +0000
(12:15 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
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 c02b2bc78529d23a4dde343ba49d381a4dc150f2..c3755d564a514b9331f50cb6ed31c144f5e58ac4 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_draw.c
+++ b/
src/mesa/drivers/dri/i965/brw_draw.c
@@
-350,6
+350,11
@@
static bool brw_try_draw_prims( struct gl_context *ctx,
else
gen6_set_prim(brw, &prim[i]);
+ /* Note that before the loop, brw->state.dirty.brw was set to != 0, and
+ * that the state updated in the loop outside of this block is that in
+ * *_set_prim or intel_batchbuffer_flush(), which only impacts
+ * brw->state.dirty.brw.
+ */
if (brw->state.dirty.brw) {
brw_validate_state(brw);