aco: fix load_barycentric_at_sample without MSAA
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 7 Jul 2022 10:55:05 +0000 (12:55 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 8 Jul 2022 07:28:33 +0000 (07:28 +0000)
commitcf46397aecb1b020f1fd73a32bc7f748d9fa0c00
tree5b72f337f9d0d5e0ae84cf8bacc2920ca64be61f
parent2071804f335bfee006ce506c61ed76a17b84c422
aco: fix load_barycentric_at_sample without MSAA

It's legal to use this instruction in a fragment shader, even if the
graphics pipeline doesn't use MSAA.

Fixes
dEQP-GLES31.functional.shaders.multisample_interpolation.interpolate_at_sample.non_multisample_buffer.sample_n_*.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17398>
src/amd/compiler/aco_instruction_selection.cpp
src/gallium/drivers/zink/ci/zink-radv-fails.txt