panfrost: Fix PIPE_COMPUTE_CAP_MAX_COMPUTE_UNITS
This maps to CL_DEVICE_MAX_COMPUTE_UNITS, which is defined as: The number of parallel compute cores on the OpenCL device. Since all supported Malis are unified shader cores, the number of parallel compute cores is simply the number of shader cores. 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
fbe430fae9
commit
c517ec5939
|
@ -715,7 +715,7 @@ panfrost_get_compute_param(struct pipe_screen *pscreen, enum pipe_shader_ir ir_t
|
|||
RET((uint32_t []) { 800 /* MHz -- TODO */ });
|
||||
|
||||
case PIPE_COMPUTE_CAP_MAX_COMPUTE_UNITS:
|
||||
RET((uint32_t []) { 9999 }); // TODO
|
||||
RET((uint32_t []) { dev->core_count });
|
||||
|
||||
case PIPE_COMPUTE_CAP_IMAGES_SUPPORTED:
|
||||
RET((uint32_t []) { 1 });
|
||||
|
|
Loading…
Reference in New Issue