summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/v3d/v3d_blit.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2018-12-13 15:47:29 -0800
committerEric Anholt <eric@anholt.net>2018-12-14 17:48:01 -0800
commite5b4d1f55f490892f56a60f8056aeddc30d7acc3 (patch)
tree89cfba08c1df14ee30b53fdbc7461b839724d319 /src/gallium/drivers/v3d/v3d_blit.c
parent485df2574e8412fb2d417d00ab80f7ea12d66d0f (diff)
downloadmesa-e5b4d1f55f490892f56a60f8056aeddc30d7acc3.tar.gz
v3d: Don't forget to bump the number of writes when doing TFU ops.
generatemipmap is just filling out the rest of the mipmap that's already been written (by a mapping or a draw call), so it didn't matter. As I reuse the TFU code for linear-to-UIF conversions, it'll start mattering.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_blit.c')
-rw-r--r--src/gallium/drivers/v3d/v3d_blit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_blit.c b/src/gallium/drivers/v3d/v3d_blit.c
index ae0812da8e7..de42f6ca7ee 100644
--- a/src/gallium/drivers/v3d/v3d_blit.c
+++ b/src/gallium/drivers/v3d/v3d_blit.c
@@ -418,6 +418,8 @@ v3d_generate_mipmap(struct pipe_context *pctx,
return false;
}
+ rsc->writes++;
+
return true;
}