intel/compiler: make uses_pos_offset a tri-state
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 26 Apr 2023 13:44:51 +0000 (16:44 +0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 May 2023 10:03:57 +0000 (10:03 +0000)
commit5489033fa8568ecacafe32ceab36f89f2e14f3dc
tree9c41744922db2777fd605794c66b4ba4956392ea
parentef01a9cf3b465889fe8084732264dad0580270c3
intel/compiler: make uses_pos_offset a tri-state

This value depends on the per-sample value which can be unknown at
compile time with graphics pipeline libraries. So we need to have this
dynamic has well and pick the right value when generating the
3DSTATE_PS/3DSTATE_WM packet.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: d8dfd153c5 ("intel/fs: Make per-sample and coarse dispatch tri-state")
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22728>
src/gallium/drivers/crocus/crocus_state.c
src/gallium/drivers/iris/iris_state.c
src/intel/compiler/brw_compiler.h
src/intel/compiler/brw_fs.cpp
src/intel/vulkan/genX_pipeline.c
src/intel/vulkan_hasvk/genX_pipeline.c