diff options
author | Francisco Jerez <currojerez@riseup.net> | 2015-12-23 18:44:59 +0200 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2016-01-14 19:26:23 -0800 |
commit | 22ac1f692228d8c44155bfa637c8e34356c7e0b7 (patch) | |
tree | 6d6e2f4ae04666e29e61b52b76d71f1fcbd3a0c8 /src/mesa/drivers/dri/i965/gen6_cc.c | |
parent | fffb559129dd1ae978ec7f9ba30b4ae97a5ebbcc (diff) | |
download | external_mesa3d-22ac1f692228d8c44155bfa637c8e34356c7e0b7.zip external_mesa3d-22ac1f692228d8c44155bfa637c8e34356c7e0b7.tar.gz external_mesa3d-22ac1f692228d8c44155bfa637c8e34356c7e0b7.tar.bz2 |
i965: Add state bit to trigger re-emission of color calculator state.
This will be used on Gen8+ to make sure that the color calculator
state pointers are re-emitted when switching back to the 3D pipeline
after some GPGPU workload due to a hardware workaround. There are
other state bits already defined that could be used to achieve the
same effect but they all cause a ton of unrelated state to be
re-emitted (e.g. BRW_NEW_STATE_BASE_ADDRESS), so just define a new
one, state bits are cheap.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen6_cc.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_cc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_cc.c b/src/mesa/drivers/dri/i965/gen6_cc.c index 3bab8f4..cee139b 100644 --- a/src/mesa/drivers/dri/i965/gen6_cc.c +++ b/src/mesa/drivers/dri/i965/gen6_cc.c @@ -298,6 +298,7 @@ const struct brw_tracked_state gen6_color_calc_state = { .mesa = _NEW_COLOR | _NEW_STENCIL, .brw = BRW_NEW_BATCH | + BRW_NEW_CC_STATE | BRW_NEW_STATE_BASE_ADDRESS, }, .emit = gen6_upload_color_calc_state, |