diff options
author | José Fonseca <[email protected]> | 2011-10-31 19:35:55 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-11-01 11:29:31 +0000 |
commit | 0cbb49aff59f7a671d153d9baa70aa78b07da538 (patch) | |
tree | 2715f49ae4db3b2b3fda641ce4f0ae6c6eba17ec /src/gallium/drivers/llvmpipe/lp_state_setup.h | |
parent | 4a0afa2c3b7a7b7460fda061bc46240876283a4b (diff) |
llvmpipe: Use -1 instead of ~0 for "no slot".
As the value of unsigned ~0 depends on the bit-width.
Fixes fdo 42411.
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 90c55ca4ce6..609c4f62511 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_setup.h +++ b/src/gallium/drivers/llvmpipe/lp_state_setup.h @@ -17,11 +17,11 @@ struct lp_setup_variant_list_item struct lp_setup_variant_key { unsigned size:16; unsigned num_inputs:8; - unsigned color_slot:8; + int color_slot:8; - unsigned bcolor_slot:8; - unsigned spec_slot:8; - unsigned bspec_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; |