mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
i965: Update gen6 WM state on compiled program change, not just FP change.
This commit is contained in:
parent
4ac2f09e20
commit
65570d0482
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue