diff options
author | Zack Rusin <[email protected]> | 2013-08-06 02:54:36 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-08-06 20:23:57 -0400 |
commit | 12522041d6e17ac176a8e86c590789bfbbe9def5 (patch) | |
tree | 8076548ef8b257ff8453d5b752266c9bc778fe31 /src/gallium/drivers | |
parent | 2572e3b4a17e4b0de9b5ed7fe6f4edf01abd5655 (diff) |
draw: fix slot detection
Nowadays -1 for slots means that the semantic is not present, so
we need to store it in a signed variables, otherwise <0 comparisons
are pointless. Fixes
http://bugzilla.eng.vmware.com/show_bug.cgi?id=67811 (at least
with softpipe, edgeflags don't work wit llvmpipe)
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_context.h | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_line.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_context.h b/src/gallium/drivers/llvmpipe/lp_setup_context.h index ea1d0d688d8..44be85fde1a 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_context.h +++ b/src/gallium/drivers/llvmpipe/lp_setup_context.h @@ -106,7 +106,7 @@ struct lp_setup_context float psize; unsigned viewport_index_slot; unsigned layer_slot; - unsigned face_slot; + int face_slot; struct pipe_framebuffer_state fb; struct u_rect framebuffer; diff --git a/src/gallium/drivers/llvmpipe/lp_setup_line.c b/src/gallium/drivers/llvmpipe/lp_setup_line.c index 3b16163ba59..a25a6b02f8d 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_line.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_line.c @@ -622,7 +622,6 @@ try_setup_line( struct lp_setup_context *setup, } else { line->inputs.frontfacing = TRUE; } - /* Setup parameter interpolants: */ |