diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-11-28 16:21:22 +0100 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2018-03-14 09:04:05 +0100 |
commit | 2afbc57fe66dd37c4be8513a7e3135aeae008df2 (patch) | |
tree | e37036d9cd43ecc7f85f96cbf6bdfea372b69043 | |
parent | efcc7fe34005eb6b00e932ea887814170359ff35 (diff) |
radeonsi/cik+: report 64KB local size for compute
-rw-r--r-- | src/gallium/drivers/radeonsi/si_get.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index e9657602f3..05a3737fa6 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -816,8 +816,10 @@ static int si_get_compute_param(struct pipe_screen *screen, 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; + if (sscreen->info.chip_class >= CIK) + *max_local_size = 65536; + else + *max_local_size = 32768; } return sizeof(uint64_t); |