mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 10:40:11 +01:00
a2xx: only update rasterizer settings when they're there
The rasterizer being empty can happen e.g. during clears Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
08f72a8944
commit
f96f210239
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue