llvmpipe/cl: limit kernel input size.

Fixes:
api min_max_parameter_size

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12285>
This commit is contained in:
Dave Airlie
2020-11-05 13:24:27 +10:00
committed by Marge Bot
parent c3bede9c96
commit ff2d838c7a

View File

@@ -517,7 +517,7 @@ llvmpipe_get_compute_param(struct pipe_screen *_screen,
case PIPE_COMPUTE_CAP_MAX_INPUT_SIZE:
if (ret) {
uint64_t *max_input = ret;
*max_input = 4096;
*max_input = 1576;
}
return sizeof(uint64_t);
case PIPE_COMPUTE_CAP_IMAGES_SUPPORTED: