aco: fix adjusting the sample index with FMASK if value is negative
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 27 Apr 2020 15:27:22 +0000 (17:27 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 07:29:54 +0000 (07:29 +0000)
commit60cc065c7dbf0291c69638fdd6a6597050814e57
treed05426f0aad8bd3f4142e99b624879315ad45fc3
parenta112ec4c11a319ef28451e0fd4cd8320adbf7ae8
aco: fix adjusting the sample index with FMASK if value is negative

The SPIR-V spec doesn't say explicitly that the sample index
must be an unsigned integer.

This fixes crashes with some new VK_EXT_robustness2 tests.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4775>
src/amd/compiler/aco_instruction_selection.cpp