diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/v3d/v3dx_emit.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/drivers/v3d/v3dx_emit.c b/src/gallium/drivers/v3d/v3dx_emit.c index 78edf02d79a..ce5eafec55c 100644 --- a/src/gallium/drivers/v3d/v3dx_emit.c +++ b/src/gallium/drivers/v3d/v3dx_emit.c @@ -276,10 +276,16 @@ static void emit_rt_blend(struct v3d_context *v3d, struct v3d_job *job, struct pipe_blend_state *blend, int rt) { - cl_emit(&job->bcl, BLEND_CONFIG, config) { - struct pipe_rt_blend_state *rtblend = &blend->rt[rt]; + struct pipe_rt_blend_state *rtblend = &blend->rt[rt]; #if V3D_VERSION >= 40 + /* We don't need to emit blend state for disabled RTs. */ + if (!rtblend->blend_enable) + return; +#endif + + cl_emit(&job->bcl, BLEND_CONFIG, config) { +#if V3D_VERSION >= 40 config.render_target_mask = 1 << rt; #else assert(rt == 0); |