aco: fix exporting the viewport index if the fragment shader needs it
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Apr 2020 06:49:32 +0000 (08:49 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Apr 2020 16:23:24 +0000 (16:23 +0000)
commitc4ca9e66ddb507831b2d35e927d6310775006894
tree1674b3cc8c6b5a15d663e58a6b6ec549050c99e9
parentb424d49ac05563fd7d9f217fae9c25fc602f4330
aco: 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>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_instruction_selection_setup.cpp