llvmpipe: PIPE_COMPUTE_CAP_GRID_DIMENSION is uint64_t

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16348>
This commit is contained in:
Karol Herbst 2022-02-25 06:11:22 +01:00 committed by Marge Bot
parent 768ebf02c5
commit 8cc1889b09

View file

@ -504,10 +504,10 @@ llvmpipe_get_compute_param(struct pipe_screen *_screen,
return sizeof(uint64_t);
case PIPE_COMPUTE_CAP_GRID_DIMENSION:
if (ret) {
uint32_t *grid_dim = ret;
uint64_t *grid_dim = ret;
*grid_dim = 3;
}
return sizeof(uint32_t);
return sizeof(uint64_t);
case PIPE_COMPUTE_CAP_MAX_GLOBAL_SIZE:
if (ret) {
uint64_t *max_global_size = ret;