nir: split SSBO min/max atomic instrinsics into signed/unsigned versions
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 28 Sep 2015 08:47:22 +0000 (10:47 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 14 Oct 2015 06:03:58 +0000 (08:03 +0200)
commitbaee16bf02eedc6a32381d79da6c7ac942f782ae
treecc4c42bf8b614a1a87e5b10440a0d346735a407e
parentbe800ef6d80fc43279780e652e611253428d7a78
nir: split SSBO min/max atomic instrinsics into signed/unsigned versions

NIR is typeless so this is the only way to keep track of the
type to select the proper atomic to use.

v2:
  - Use imin,imax,umin,umax for the intrinsic names (Connor Abbott)
  - Change message for unreachable paths (Michael Schellenberger)

Tested-by: Markus Wick <markus@selfnet.de>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/glsl_to_nir.cpp
src/glsl/nir/nir_intrinsics.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp