diff options
author | Rob Clark <robdclark@chromium.org> | 2020-04-30 16:00:21 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-05-01 00:02:28 +0000 |
commit | f8424d3b9993d555115a82c7cea4931b89a94fea (patch) | |
tree | a5b6fa7e7985365d23c0c4640ec3b370abca56c3 /src/gallium/drivers/freedreno/a6xx/fd6_draw.c | |
parent | 0e51082cfa733b3b8255bbd77fc4af46f4108c1d (diff) |
freedreno/a6xx: fix LRZ hang
In detecting the case where we actually do need to re-emit LRZ state
(due to new batch), we were checking `ctx->last.dirty` to detect when
we cannot trust previous state. But this is cleared before we check
it.
Move where it is cleared to the end of the draw_vbo() path.
Fixes: dfa702e94b9 ("freedreno/a6xx: limit LRZ state emit")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4842>
Diffstat (limited to 'src/gallium/drivers/freedreno/a6xx/fd6_draw.c')
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_draw.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_draw.c b/src/gallium/drivers/freedreno/a6xx/fd6_draw.c index 5ce0f860511..78bd62051f6 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_draw.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_draw.c @@ -137,8 +137,6 @@ fixup_draw_state(struct fd_context *ctx, struct fd6_emit *emit) ctx->dirty |= FD_DIRTY_RASTERIZER; ctx->last.primitive_restart = emit->primitive_restart; } - - ctx->last.dirty = false; } static bool |