anv: Set up SBE_SWIZ properly for gl_Viewport
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 26 Nov 2019 21:08:43 +0000 (15:08 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 3 Dec 2019 16:20:50 +0000 (16:20 +0000)
commitb1f37688ba717db81a7e9c97e2a875d528d85112
tree07d51a414f024589cb18bb6c0b1332d5d1b54d65
parent0c88d5952aafdc90b732ee6b0b425ca741537e52
anv: Set up SBE_SWIZ properly for gl_Viewport

gl_Viewport is also in the VUE header so we need to whack the read
offset to 0 and emit a default (no overrides) SBE_SWIZ entry in that
case as well.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/genX_pipeline.c