diff options
author | Ilia Mirkin <[email protected]> | 2017-08-15 01:38:17 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-08-15 22:54:40 -0400 |
commit | f96f210239d8fdf2f1369cccfaeef06d0a53453e (patch) | |
tree | 529e25820bbe41fde12538c0dfc99ad31b1e7819 /src/gallium/drivers/freedreno/a2xx | |
parent | 08f72a89444caa9b0851c8ea6458d44ecacec478 (diff) |
a2xx: only update rasterizer settings when they're there
The rasterizer being empty can happen e.g. during clears
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a2xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a2xx/fd2_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_emit.c b/src/gallium/drivers/freedreno/a2xx/fd2_emit.c index d745e44b0ad..50eee63636c 100644 --- a/src/gallium/drivers/freedreno/a2xx/fd2_emit.c +++ b/src/gallium/drivers/freedreno/a2xx/fd2_emit.c @@ -217,7 +217,7 @@ fd2_emit_state(struct fd_context *ctx, const enum fd_dirty_3d_state dirty) OUT_RING(ring, zsa->rb_alpha_ref); } - if (dirty & (FD_DIRTY_RASTERIZER | FD_DIRTY_FRAMEBUFFER)) { + if (ctx->rasterizer && dirty & FD_DIRTY_RASTERIZER) { struct fd2_rasterizer_stateobj *rasterizer = fd2_rasterizer_stateobj(ctx->rasterizer); OUT_PKT3(ring, CP_SET_CONSTANT, 3); |