summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a6xx
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-09-11 16:21:29 -0400
committerRob Clark <[email protected]>2018-09-27 15:41:46 -0400
commit919741b8d5357b2a061a48f7142c1e24be8656d4 (patch)
treeba4d6279898c864973c8f37b08a9a00346a0243c /src/gallium/drivers/freedreno/a6xx
parent19e9d286464d1941f731f0d84402725f918623d6 (diff)
freedreno: handle invalidated buffers harder
Do a better job of skipping mem2gmem/gmem2mem.. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a6xx')
-rw-r--r--src/gallium/drivers/freedreno/a6xx/fd6_gmem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
index 8cda9fdedf9..86671fb75da 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
@@ -681,6 +681,9 @@ emit_resolve_blit(struct fd_batch *batch, uint32_t base,
struct fd_ringbuffer *ring = batch->gmem;
uint32_t info = 0;
+ if (!rsc->valid)
+ return;
+
switch (buffer) {
case FD_BUFFER_COLOR:
break;