Mesa (master): draw: initialize prim header flags when clipping lines
Roland Scheidegger
sroland at kemper.freedesktop.org
Thu Jan 7 23:35:09 UTC 2016
Module: Mesa
Branch: master
Commit: 9db7309595309ff0835c701108827ffc8c906751
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9db7309595309ff0835c701108827ffc8c906751
Author: Roland Scheidegger <sroland at vmware.com>
Date: Thu Jan 7 19:38:15 2016 +0100
draw: initialize prim header flags when clipping lines
Otherwise, clipped lines would have undefined stippling reset bit if line
stippling is enabled.
(Untested, and I just assume copying over the bits from the original line
is actually the right thing to do.)
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/gallium/auxiliary/draw/draw_pipe_clip.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/auxiliary/draw/draw_pipe_clip.c b/src/gallium/auxiliary/draw/draw_pipe_clip.c
index 67d8eca..2d92d65 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_clip.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_clip.c
@@ -611,6 +611,8 @@ do_clip_line(struct draw_stage *stage,
struct prim_header newprim;
int viewport_index;
+ newprim.flags = header->flags;
+
if (stage->draw->rasterizer->flatshade_first) {
prov_vertex = v0;
}
More information about the mesa-commit
mailing list