diff options
author | Roland Scheidegger <[email protected]> | 2015-12-19 06:12:27 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2016-01-07 01:59:17 +0100 |
commit | 8e3a76791f208e67392b7b7a2e63eca32945ac7b (patch) | |
tree | d252643e736e669d891079ba3202f865445ec53f /src/gallium/drivers/llvmpipe/lp_state_setup.h | |
parent | 2dbc20e45689e09766552517a74e2270e49817b5 (diff) |
llvmpipe: use ints not unsigned for slots
They can't actually be 0 (as position is there) but should avoid confusion.
This was supposed to have been done by af7ba989fb5a39925a0a1261ed281fe7f48a16cf
but I accidentally pushed an older version of the patch in the end...
Also prettify slightly. And make some notes about the confusing and useless
fs input "map".
Reviewed-by: Jose Fonseca <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_setup.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_setup.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.h b/src/gallium/drivers/llvmpipe/lp_state_setup.h index 6cee6fe5eb5..9ad244482de 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_setup.h +++ b/src/gallium/drivers/llvmpipe/lp_state_setup.h @@ -17,10 +17,10 @@ struct lp_setup_variant_list_item struct lp_setup_variant_key { unsigned size:16; unsigned num_inputs:8; - unsigned color_slot:8; - unsigned bcolor_slot:8; - unsigned spec_slot:8; - unsigned bspec_slot:8; + int color_slot:8; + int bcolor_slot:8; + int spec_slot:8; + int bspec_slot:8; unsigned flatshade_first:1; unsigned pixel_center_half:1; unsigned twoside:1; |