r600: remove a set but not used variable

grid_size was never used. Not even when introduced
in 6a829a1b72

Fixes a warning on clang

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252>
This commit is contained in:
Thomas H.P. Andersen 2021-12-18 01:46:43 +01:00 committed by Marge Bot
parent ea33eceb32
commit 46a0f6384e
1 changed files with 1 additions and 6 deletions

View File

@ -605,22 +605,17 @@ static void evergreen_emit_dispatch(struct r600_context *rctx,
unsigned num_pipes = rctx->screen->b.info.r600_max_quad_pipes;
unsigned wave_divisor = (16 * num_pipes);
int group_size = 1;
int grid_size = 1;
unsigned lds_size = shader->local_size / 4;
if (shader->ir_type != PIPE_SHADER_IR_TGSI &&
shader->ir_type != PIPE_SHADER_IR_NIR)
lds_size += shader->bc.nlds_dw;
/* Calculate group_size/grid_size */
/* Calculate group_size */
for (i = 0; i < 3; i++) {
group_size *= info->block[i];
}
for (i = 0; i < 3; i++) {
grid_size *= info->grid[i];
}
/* num_waves = ceil((tg_size.x * tg_size.y, tg_size.z) / (16 * num_pipes)) */
num_waves = (info->block[0] * info->block[1] * info->block[2] +
wave_divisor - 1) / wave_divisor;