diff options
author | Jason Ekstrand <[email protected]> | 2019-11-26 15:08:43 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-12-03 16:20:50 +0000 |
commit | b1f37688ba717db81a7e9c97e2a875d528d85112 (patch) | |
tree | 07d51a414f024589cb18bb6c0b1332d5d1b54d65 | |
parent | 0c88d5952aafdc90b732ee6b0b425ca741537e52 (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: [email protected]
Reviewed-by: Lionel Landwerlin <[email protected]>
-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 1d35c99001b..6c7ed9d7f96 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; } |