glsl: don't expose imageAtomicIncWrap for signed image
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 19 Jun 2020 16:34:51 +0000 (18:34 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 9 Jul 2020 07:58:01 +0000 (09:58 +0200)
commit233af4a412db87a9b8430104a58c1b6adb704b1c
tree05d97cba2d5a14e3e12eae183a0f533c4ffcaede
parent438392243fb284884e8499758064256fb3dad48d
glsl: don't expose imageAtomicIncWrap for signed image

The spec says that it's only allowed for unsigned ones.
Same from imageAtomicDecWrap.

Fixes: fc0a2e5d017 ("glsl: add EXT_shader_image_load_store new image functions")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5688>
src/compiler/glsl/builtin_functions.cpp