anv: ensure CPS is initialized when KHR_fragment_shading_rate is disabled
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 19 Nov 2022 01:35:27 +0000 (03:35 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 22 Nov 2022 03:53:57 +0000 (03:53 +0000)
commit507a86e131d648ecc85dc833f4821da6ac995cfe
tree3eea1b7be5a6eed6349583a3e45a6d2e1121f214
parent62f12c2dadc2c9eac34a946450b2d4c615f96f75
anv: ensure CPS is initialized when KHR_fragment_shading_rate is disabled

We need to set CPS_MODE_NONE when no per coarse pixel dispatch.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 231651fd89fb ("anv: implement VK_KHR_fragment_shading_rate")
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19867>
src/intel/vulkan/anv_device.c
src/intel/vulkan/genX_state.c