OSDN Git Service

i965: Add state bit to trigger re-emission of color calculator state.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 23 Dec 2015 16:44:59 +0000 (18:44 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 15 Jan 2016 03:26:23 +0000 (19:26 -0800)
commit22ac1f692228d8c44155bfa637c8e34356c7e0b7
tree6d6e2f4ae04666e29e61b52b76d71f1fcbd3a0c8
parentfffb559129dd1ae978ec7f9ba30b4ae97a5ebbcc
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>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/gen6_cc.c