gallium/radeon: make S_FIXED function signed and move it to shared code
authorMarek Olšák <marek.olsak@amd.com>
Tue, 25 Jul 2017 15:29:58 +0000 (17:29 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 26 Jul 2017 17:53:26 +0000 (19:53 +0200)
commit433f6f7ac9ed6624fec02cc055c3bfa247dba185
tree8a0a712137e9cf64de7c26b2f8d07d4d68dcd9e1
parent033b4e434057a6cc885f443792167dfabfb077b6
gallium/radeon: make S_FIXED function signed and move it to shared code

This fixes a bug uncovered by:
    2412c4c81ea0488df865817a0de91ec46e359b72
    util: Make CLAMP turn NaN into MIN.

Cc: 17.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeonsi/si_state.c