aco: fix wrong IR in nir_intrinsic_load_barycentric_at_sample
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 21 Jan 2020 08:47:18 +0000 (09:47 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 23 Jan 2020 13:40:21 +0000 (14:40 +0100)
commit01f0bef71e60a9853ce7854288678ec15adde79f
tree284a83c4ffc6c1eb31dd3c1ee101f6048b94c0f6
parentd101907de97fad39bde70d05975cb2bfa5e8dbb8
aco: fix wrong IR in nir_intrinsic_load_barycentric_at_sample

Only GFX6 was affected, my mistake. The total number of SGPR operands
should be 4 when we want to create a vec4.

Fixes: dbdf3b3ef97 ("aco: implement nir_intrinsic_load_barycentric_at_sample on GFX6")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3477>
src/amd/compiler/aco_instruction_selection.cpp