* Border color was stored as int, hence need min/max clamp
* only if chan has less than 32 bits..
*/
- unsigned chan_size = format_desc->channel[chan].size < 32;
+ unsigned chan_size = format_desc->channel[chan].size;
if (chan_size < 32) {
min_clamp = lp_build_const_int_vec(gallivm, vec4_type,
0 - (1 << (chan_size - 1)));
* Border color was stored as uint, hence never need min
* clamp, and only need max clamp if chan has less than 32 bits.
*/
- unsigned chan_size = format_desc->channel[chan].size < 32;
+ unsigned chan_size = format_desc->channel[chan].size;
if (chan_size < 32) {
max_clamp = lp_build_const_int_vec(gallivm, vec4_type,
(1 << chan_size) - 1);