radeonsi: report correct maximum compute grid sizes

Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16901>
This commit is contained in:
Marek Olšák
2022-06-05 21:46:14 -04:00
committed by Marge Bot
parent ecda7be628
commit 91e533c6aa
+3 -3
View File
@@ -817,9 +817,9 @@ static int si_get_compute_param(struct pipe_screen *screen, enum pipe_shader_ir
case PIPE_COMPUTE_CAP_MAX_GRID_SIZE:
if (ret) {
uint64_t *grid_size = ret;
grid_size[0] = 65535;
grid_size[1] = 65535;
grid_size[2] = 65535;
grid_size[0] = UINT32_MAX;
grid_size[1] = UINT32_MAX;
grid_size[2] = UINT32_MAX;
}
return 3 * sizeof(uint64_t);