projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c16e711
)
iris/compute: Zero out the last grid size on indirect dispatches
author
Jason Ekstrand
<jason@jlekstrand.net>
Sat, 27 Oct 2018 03:22:04 +0000
(22:22 -0500)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:09 +0000
(10:26 -0800)
src/gallium/drivers/iris/iris_draw.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_draw.c
b/src/gallium/drivers/iris/iris_draw.c
index cd7c969e91b299aea2ead8992b46a8849396348c..233658a1204ae4a1e21f3a339e9e10221d504625 100644
(file)
--- a/
src/gallium/drivers/iris/iris_draw.c
+++ b/
src/gallium/drivers/iris/iris_draw.c
@@
-109,6
+109,11
@@
iris_update_grid_size_resource(struct iris_context *ice,
if (grid->indirect) {
grid_ref->res = grid->indirect;
grid_ref->offset = grid->indirect_offset;
+
+ /* Zero out the grid size so that the next non-indirect grid launch will
+ * re-upload it properly.
+ */
+ memset(ice->state.last_grid, 0, sizeof(ice->state.last_grid));
} else {
/* If the size is the same, we don't need to upload anything. */
if (memcmp(ice->state.last_grid, grid->grid, sizeof(grid->grid)) == 0)