i965/gen8+: Invalidate color calc state when switching to the GPGPU pipeline.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 3 Jan 2016 02:35:28 +0000 (18:35 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 15 Jan 2016 03:26:23 +0000 (19:26 -0800)
commit044acb9256046bebec890cac7e42043754459fc2
tree7737fa079565fb5d9775a3da9cb0284e76491601
parent22ac1f692228d8c44155bfa637c8e34356c7e0b7
i965/gen8+: Invalidate color calc state when switching to the GPGPU pipeline.

This hardware bug can cause a hang on context restore while the
current pipeline is set to GPGPU (BDWGFX HSD 1909593).  In addition to
clearing the valid bit, mark the CC state as dirty to make sure that
the CC indirect state pointer is re-emitted when we switch back to the
3D pipeline.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_misc_state.c