diff options
Diffstat (limited to 'i965/brw_clip_line.c')
-rw-r--r-- | i965/brw_clip_line.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/i965/brw_clip_line.c b/i965/brw_clip_line.c index 048ca62..fa9648f 100644 --- a/i965/brw_clip_line.c +++ b/i965/brw_clip_line.c @@ -269,8 +269,12 @@ void brw_emit_line_clip( struct brw_clip_compile *c ) brw_clip_line_alloc_regs(c); brw_clip_init_ff_sync(c); - if (c->key.do_flat_shading) - brw_clip_copy_colors(c, 0, 1); + if (c->key.do_flat_shading) { + if (c->key.pv_first) + brw_clip_copy_colors(c, 1, 0); + else + brw_clip_copy_colors(c, 0, 1); + } clip_and_emit_line(c); } |