intel/common/intel_genX_state.h: Add intel_set_ps_dispatch_state()
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 9 Dec 2022 00:31:20 +0000 (16:31 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 15 Dec 2022 08:54:59 +0000 (00:54 -0800)
commit78a75e0d257d309bd115632903d61d5114c752cd
tree0434211e064961c3707d1f424e0a847b25d4abc7
parentf16e76d9409bc79cd66ef96102ee4c6942651bbe
intel/common/intel_genX_state.h: Add intel_set_ps_dispatch_state()

This replaces brw_fs_get_dispatch_enables(), which was added in
b9403b1c477 ("intel: factor out dispatch PS enabling logic"), but this
function will not work well for future changes to 3DSTATE_PS.

So, instead, this moves the related code into a "genX" file which can
directly update 3DSTATE_PS for the given platform.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20329>
src/gallium/drivers/crocus/crocus_state.c
src/gallium/drivers/iris/iris_state.c
src/intel/blorp/blorp_genX_exec.h
src/intel/common/intel_genX_state.h
src/intel/compiler/brw_compiler.h
src/intel/vulkan/genX_pipeline.c
src/intel/vulkan_hasvk/genX_pipeline.c