diff options
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_emit.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_emit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_emit.c b/src/gallium/drivers/vc4/vc4_emit.c index 476ea9c6fd4..2a25ca08b9d 100644 --- a/src/gallium/drivers/vc4/vc4_emit.c +++ b/src/gallium/drivers/vc4/vc4_emit.c @@ -62,4 +62,10 @@ vc4_emit_state(struct pipe_context *pctx) cl_u16(&vc4->bcl, 16 * vc4->viewport.translate[0]); cl_u16(&vc4->bcl, 16 * vc4->viewport.translate[1]); } + + if (vc4->dirty & VC4_DIRTY_FLAT_SHADE_FLAGS) { + cl_u8(&vc4->bcl, VC4_PACKET_FLAT_SHADE_FLAGS); + cl_u32(&vc4->bcl, vc4->rasterizer->base.flatshade ? + vc4->prog.fs->color_inputs : 0); + } } |