diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2019-11-26 15:08:43 -0600 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-12-04 13:43:32 -0800 |
commit | 2bf47550cea1cf4fd9f9d67bca8c91cb3d6fa960 (patch) | |
tree | c37ddd05c6920636d7f824f69c06c0928b874037 | |
parent | b4e83559cb3f0f4507df9203703ae3d9b618873a (diff) |
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>
(cherry picked from commit b1f37688ba717db81a7e9c97e2a875d528d85112)
-rw-r--r-- | src/intel/vulkan/genX_pipeline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 88f5b358faf..e23ef99d979 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -369,8 +369,8 @@ emit_3dstate_sbe(struct anv_pipeline *pipeline) if (input_index < 0) continue; - /* gl_Layer is stored in the VUE header */ - if (attr == VARYING_SLOT_LAYER) { + /* gl_Viewport and gl_Layer are stored in the VUE header */ + if (attr == VARYING_SLOT_VIEWPORT || attr == VARYING_SLOT_LAYER) { urb_entry_read_offset = 0; continue; } |