projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ac2f09
)
i965: Update gen6 WM state on compiled program change, not just FP change.
author
Eric Anholt
<eric@anholt.net>
Sat, 4 Dec 2010 02:25:52 +0000
(18:25 -0800)
committer
Eric Anholt
<eric@anholt.net>
Sun, 5 Dec 2010 00:26:55 +0000
(16:26 -0800)
src/mesa/drivers/dri/i965/gen6_wm_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/gen6_wm_state.c
b/src/mesa/drivers/dri/i965/gen6_wm_state.c
index
ea5418b
..
0d839de
100644
(file)
--- a/
src/mesa/drivers/dri/i965/gen6_wm_state.c
+++ b/
src/mesa/drivers/dri/i965/gen6_wm_state.c
@@
-88,6
+88,7
@@
upload_wm_state(struct brw_context *brw)
brw_fragment_program_const(brw->fragment_program);
uint32_t dw2, dw4, dw5, dw6;
+ /* CACHE_NEW_WM_PROG */
if (brw->wm.prog_data->nr_params == 0) {
/* Disable the push constant buffers. */
BEGIN_BATCH(5);
@@
-182,7
+183,8
@@
const struct brw_tracked_state gen6_wm_state = {
BRW_NEW_NR_WM_SURFACES |
BRW_NEW_URB_FENCE |
BRW_NEW_BATCH),
- .cache = CACHE_NEW_SAMPLER
+ .cache = (CACHE_NEW_SAMPLER |
+ CACHE_NEW_WM_PROG)
},
.emit = upload_wm_state,
};