mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
panfrost: Fix PIPE_COMPUTE_CAP_SUBGROUP_SIZE
Use the new helper to implement the CAP, correctly handling Midgard and Valhall. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17265>
This commit is contained in:
parent
c517ec5939
commit
3d69b65512
1 changed files with 1 additions and 1 deletions
|
|
@ -721,7 +721,7 @@ panfrost_get_compute_param(struct pipe_screen *pscreen, enum pipe_shader_ir ir_t
|
||||||
RET((uint32_t []) { 1 });
|
RET((uint32_t []) { 1 });
|
||||||
|
|
||||||
case PIPE_COMPUTE_CAP_SUBGROUP_SIZE:
|
case PIPE_COMPUTE_CAP_SUBGROUP_SIZE:
|
||||||
RET((uint32_t []) { dev->arch >= 7 ? 8 : 4 });
|
RET((uint32_t []) { pan_subgroup_size(dev->arch) });
|
||||||
|
|
||||||
case PIPE_COMPUTE_CAP_MAX_VARIABLE_THREADS_PER_BLOCK:
|
case PIPE_COMPUTE_CAP_MAX_VARIABLE_THREADS_PER_BLOCK:
|
||||||
RET((uint64_t []) { 1024 }); // TODO
|
RET((uint64_t []) { 1024 }); // TODO
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue