diff options
author | Marek Olšák <[email protected]> | 2019-02-27 17:19:53 -0500 |
---|---|---|
committer | Leo Liu <[email protected]> | 2019-03-15 11:53:08 -0400 |
commit | b9e02fe138ef181f02fd739129517fbe70604af6 (patch) | |
tree | 1573ab19b98a9be476b425efe8609dcee45b5042 /src/gallium/drivers/radeonsi/si_pipe.h | |
parent | 34b3b92bbee1f68a9c121cd26e30e113c8cd39a8 (diff) |
gallium: add pipe_grid_info::last_block
The OpenMAX state tracker will use this.
RadeonSI is adapted to use pipe_grid_info::last_block instead of its
internal state.
Acked-by: Leo Liu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index b3198d45ea6..b6858b46ec0 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -921,28 +921,6 @@ struct si_context { uint32_t vs_blit_sh_data[SI_VS_BLIT_SGPRS_POS_TEXCOORD]; uint32_t cs_user_data[4]; - /** - * last_block allows disabling threads at the farthermost grid boundary. - * Full blocks as specified by "block" are launched, but the threads - * outside of "last_block" dimensions are disabled. - * - * If a block touches the grid boundary in the i-th axis, threads with - * THREAD_ID[i] >= last_block[i] are disabled. - * - * If last_block[i] is 0, it has the same behavior as last_block[i] = block[i], - * meaning no effect. - * - * It's equivalent to doing this at the beginning of the compute shader: - * - * for (i = 0; i < 3; i++) { - * if (block_id[i] == grid[i] - 1 && - * last_block[i] && last_block[i] >= thread_id[i]) - * return; - * } - * (this could be moved into pipe_grid_info) - */ - uint compute_last_block[3]; - /* Vertex and index buffers. */ bool vertex_buffers_dirty; bool vertex_buffer_pointer_dirty; |