draw: fix line stippling with unfilled prims
authorRoland Scheidegger <sroland@vmware.com>
Wed, 6 Jan 2016 22:49:30 +0000 (23:49 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 7 Jan 2016 23:34:13 +0000 (00:34 +0100)
commit64da11f05294551a248f395db168f4941f969b45
tree77570068eb7bbe48fe11c3f92e77917ed53ba912
parent5cf156c6b42c03391429ef08542363f7574fd0c9
draw: fix line stippling with unfilled prims

The unfilled stage was not filling in the prim header, and the line stage
then decided to reset the stipple counter or not based on the uninitialized
data. This causes some failures in conform linestipple test (albeit quite
randomly happening depending on environment).
So fill in the prim header in the unfilled stage - I am not entirely sure
if anybody really needs determinant after that stage, but there's at least
later stages (wide line for instance) which copy over the determinant as well.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_unfilled.c