freedreno/a5xx: add global size compute cap
authorRob Clark <robdclark@gmail.com>
Thu, 9 Nov 2017 21:57:05 +0000 (16:57 -0500)
committerRob Clark <robdclark@gmail.com>
Sun, 12 Nov 2017 17:28:59 +0000 (12:28 -0500)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_screen.c

index 6a44d7543d1800a757f1b722e01aefd608a68ed7..159f272c9d7de155524ce2ba97b6838b850538d9 100644 (file)
@@ -665,6 +665,11 @@ fd_get_compute_param(struct pipe_screen *pscreen, enum pipe_shader_ir ir_type,
 
        case PIPE_COMPUTE_CAP_MAX_GLOBAL_SIZE:
        case PIPE_COMPUTE_CAP_MAX_LOCAL_SIZE:
+               if (ret) {
+                       uint64_t *local_size = ret;
+                       *local_size = 32768;
+               }
+               return sizeof(uint64_t);
        case PIPE_COMPUTE_CAP_MAX_PRIVATE_SIZE:
        case PIPE_COMPUTE_CAP_MAX_INPUT_SIZE:
                break;