radeonsi: Handle additional PIPE_COMPUTE_CAP_*
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>
Fri, 9 Aug 2013 09:59:30 +0000 (11:59 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 24 Aug 2013 00:00:01 +0000 (17:00 -0700)
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>
src/gallium/drivers/radeonsi/radeonsi_pipe.c

index 2258de9380dc80cc6bb418b584602945bf982dae..91c41e78a127fc0042d30197c94ca58057200158 100644 (file)
@@ -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;