mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-16 19:10:43 +01:00
radeonsi: Handle additional PIPE_COMPUTE_CAP_*
This patch adds support for: PIPE_COMPUTE_CAP_MAX_INPUT_SIZE PIPE_COMPUTE_CAP_MAX_LOCAL_SIZE Return the values reported by the closed source driver for now. Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
04349541cd
commit
288a252523
1 changed files with 14 additions and 1 deletions
|
|
@ -611,7 +611,20 @@ static int r600_get_compute_param(struct pipe_screen *screen,
|
|||
*max_global_size = 2000000000;
|
||||
}
|
||||
return sizeof(uint64_t);
|
||||
|
||||
case PIPE_COMPUTE_CAP_MAX_LOCAL_SIZE:
|
||||
if (ret) {
|
||||
uint64_t *max_local_size = ret;
|
||||
/* Value reported by the closed source driver. */
|
||||
*max_local_size = 32768;
|
||||
}
|
||||
return sizeof(uint64_t);
|
||||
case PIPE_COMPUTE_CAP_MAX_INPUT_SIZE:
|
||||
if (ret) {
|
||||
uint64_t *max_input_size = ret;
|
||||
/* Value reported by the closed source driver. */
|
||||
*max_input_size = 1024;
|
||||
}
|
||||
return sizeof(uint64_t);
|
||||
case PIPE_COMPUTE_CAP_MAX_MEM_ALLOC_SIZE:
|
||||
if (ret) {
|
||||
uint64_t max_global_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue