draw: fix slot detection
authorZack Rusin <zackr@vmware.com>
Tue, 6 Aug 2013 06:54:36 +0000 (02:54 -0400)
committerZack Rusin <zackr@vmware.com>
Wed, 7 Aug 2013 00:23:57 +0000 (20:23 -0400)
commit12522041d6e17ac176a8e86c590789bfbbe9def5
tree8076548ef8b257ff8453d5b752266c9bc778fe31
parent2572e3b4a17e4b0de9b5ed7fe6f4edf01abd5655
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>
src/gallium/drivers/llvmpipe/lp_setup_context.h
src/gallium/drivers/llvmpipe/lp_setup_line.c