diff options
author | Roland Scheidegger <sroland@vmware.com> | 2014-12-10 20:01:27 +0100 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2014-12-10 22:11:16 +0100 |
commit | fb61f75bf633e60c0f81fe8ae59d03bfa68d755b (patch) | |
tree | ff8f1e5aa4ce2f86e315e9078b802ac422b9c167 /src/gallium/auxiliary/draw/draw_pipe_flatshade.c | |
parent | fe7e6b248f4f97e10adb26db2836ff5accbff94a (diff) | |
download | external_mesa3d-fb61f75bf633e60c0f81fe8ae59d03bfa68d755b.zip external_mesa3d-fb61f75bf633e60c0f81fe8ae59d03bfa68d755b.tar.gz external_mesa3d-fb61f75bf633e60c0f81fe8ae59d03bfa68d755b.tar.bz2 |
draw: copy over prim id header in flatshade stage when emitting lines
Just like we do for tris (det shouldn't matter at this point, however
can have flags for things like line stipple reset).
No piglit change, it would fail line stippling tests if the flatshade
stage were run, which will happen with the next commit.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe_flatshade.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_flatshade.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_flatshade.c b/src/gallium/auxiliary/draw/draw_pipe_flatshade.c index cf19b37..4d62dbd 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_flatshade.c +++ b/src/gallium/auxiliary/draw/draw_pipe_flatshade.c @@ -145,9 +145,6 @@ static void flatshade_tri_2( struct draw_stage *stage, } - - - /** * Flatshade line. Required for clipping. */ @@ -156,6 +153,9 @@ static void flatshade_line_0( struct draw_stage *stage, { struct prim_header tmp; + tmp.det = header->det; + tmp.flags = header->flags; + tmp.pad = header->pad; tmp.v[0] = header->v[0]; tmp.v[1] = dup_vert(stage, header->v[1], 0); @@ -169,6 +169,9 @@ static void flatshade_line_1( struct draw_stage *stage, { struct prim_header tmp; + tmp.det = header->det; + tmp.flags = header->flags; + tmp.pad = header->pad; tmp.v[0] = dup_vert(stage, header->v[0], 0); tmp.v[1] = header->v[1]; |