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 <zackr@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
Zack Rusin 2013-08-06 02:54:36 -04:00
parent 2572e3b4a1
commit 12522041d6
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -622,7 +622,6 @@ try_setup_line( struct lp_setup_context *setup,
} else {
line->inputs.frontfacing = TRUE;
}
/* Setup parameter interpolants:
*/