diff options
author | Marek Olšák <[email protected]> | 2017-07-25 17:29:58 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-07-26 19:53:26 +0200 |
commit | 433f6f7ac9ed6624fec02cc055c3bfa247dba185 (patch) | |
tree | 8a0a712137e9cf64de7c26b2f8d07d4d68dcd9e1 /src/gallium/drivers/radeonsi | |
parent | 033b4e434057a6cc885f443792167dfabfb077b6 (diff) |
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 <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 7e3d1a02e07..42d81e74469 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -74,11 +74,6 @@ static unsigned si_map_swizzle(unsigned swizzle) } } -static uint32_t S_FIXED(float value, uint32_t frac_bits) -{ - return value * (1 << frac_bits); -} - /* 12.4 fixed-point */ static unsigned si_pack_float_12p4(float x) { |