iris/compute: Zero out the last grid size on indirect dispatches

This commit is contained in:
Jason Ekstrand
2018-10-26 22:22:04 -05:00
committed by Kenneth Graunke
parent c16e711ff2
commit 8e8868d5ad
+5
View File
@@ -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)