From 0cbb49aff59f7a671d153d9baa70aa78b07da538 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 31 Oct 2011 19:35:55 +0000 Subject: llvmpipe: Use -1 instead of ~0 for "no slot". As the value of unsigned ~0 depends on the bit-width. Fixes fdo 42411. --- src/gallium/drivers/llvmpipe/lp_state_setup.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gallium/drivers/llvmpipe/lp_state_setup.h') 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; -- cgit v1.2.3