mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
radv/llvm: fix exporting the viewport index if the fragment shader needs it
It's like the layer, it has to be exported via the pos and also as a varying if the fragment shader reads it. Fixes dEQP-VK.draw.shader_viewport_index.fragment_shader_* Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4564>
This commit is contained in:
parent
19aa68ae31
commit
b424d49ac0
1 changed files with 1 additions and 0 deletions
|
|
@ -1772,6 +1772,7 @@ radv_build_param_exports(struct radv_shader_context *ctx,
|
|||
|
||||
if (slot_name != VARYING_SLOT_LAYER &&
|
||||
slot_name != VARYING_SLOT_PRIMITIVE_ID &&
|
||||
slot_name != VARYING_SLOT_VIEWPORT &&
|
||||
slot_name != VARYING_SLOT_CLIP_DIST0 &&
|
||||
slot_name != VARYING_SLOT_CLIP_DIST1 &&
|
||||
slot_name < VARYING_SLOT_VAR0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue