gallium: redefine ATOMINC_WRAP to be more hardware-friendly
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 7 Aug 2019 01:59:44 +0000 (21:59 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 8 Aug 2019 02:31:56 +0000 (22:31 -0400)
commita2bb7b26a1c4ed1c00c9d81bcd0318ff0acb141a
tree7391990d9d065996ea99168fcb0af0637f000e96
parent582c86346d77538009d993c4cf8c7aa4021c0ad0
gallium: redefine ATOMINC_WRAP to be more hardware-friendly

Both AMD and NVIDIA hardware define it this way. Instead of replicating
the logic everywhere, just fix it up in one place.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/docs/source/tgsi.rst
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp