mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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 b1f37688ba)
This commit is contained in:
parent
b4e83559cb
commit
2bf47550ce
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue