diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-07-22 10:50:50 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-07-22 10:50:50 +0000 |
commit | 9130ec005fbc78a62420643414d8354d0929ca50 (patch) | |
tree | 6762777acdd2d4eee17ef87290e80dc7afe2b73d /lib/mesa/src/gallium/drivers/softpipe/sp_compute.c | |
parent | ca11beabae33eb59fb981b8adf50b1d47a2a98f0 (diff) |
Merge Mesa 21.1.5
Diffstat (limited to 'lib/mesa/src/gallium/drivers/softpipe/sp_compute.c')
-rw-r--r-- | lib/mesa/src/gallium/drivers/softpipe/sp_compute.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/drivers/softpipe/sp_compute.c b/lib/mesa/src/gallium/drivers/softpipe/sp_compute.c index 31252255b..ac8d51196 100644 --- a/lib/mesa/src/gallium/drivers/softpipe/sp_compute.c +++ b/lib/mesa/src/gallium/drivers/softpipe/sp_compute.c @@ -152,7 +152,7 @@ fill_grid_size(struct pipe_context *context, params = pipe_buffer_map_range(context, info->indirect, info->indirect_offset, 3 * sizeof(uint32_t), - PIPE_TRANSFER_READ, + PIPE_MAP_READ, &transfer); if (!transfer) @@ -227,6 +227,11 @@ softpipe_launch_grid(struct pipe_context *context, } } + if (softpipe->active_statistics_queries) { + softpipe->pipeline_statistics.cs_invocations += + grid_size[0] * grid_size[1] * grid_size[2]; + } + for (i = 0; i < num_threads_in_group; i++) { cs_delete(cs, machines[i]); tgsi_exec_machine_destroy(machines[i]); |