diff options
author | Niels Ole Salscheider <[email protected]> | 2013-08-09 11:59:30 +0200 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2013-08-23 17:00:01 -0700 |
commit | 288a25252386d2cc372a5938fd4ff05879efd3ca (patch) | |
tree | d4979e3c10477d7af566db9350ade96936185cc0 /src/gallium/drivers/radeonsi | |
parent | 04349541cd6fd635db786e00568357f0dbfd1aa0 (diff) |
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 <[email protected]>
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_pipe.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c index 2258de9380d..91c41e78a12 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c @@ -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; |