mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 23:50:11 +01:00
panfrost: Allocate shared memory in OpenCL
In OpenCL, we can have no shader-defined shared memory but some dispatch-time variable memory. This is not reflected in ss->info.wls_size, so check the right variable instead so we allocate the appropriate memory. Fixes page faults accessing shared memory with Rusticl, e.g. in the vstore_local test. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Italo Nicola <italonicola@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22228>
This commit is contained in:
parent
2f2738dc90
commit
de01ae120d
1 changed files with 1 additions and 1 deletions
|
|
@ -1604,7 +1604,7 @@ panfrost_emit_shared_memory(struct panfrost_batch *batch,
|
|||
info.tls.ptr = bo->ptr.gpu;
|
||||
}
|
||||
|
||||
if (ss->info.wls_size) {
|
||||
if (info.wls.size) {
|
||||
unsigned size = pan_wls_adjust_size(info.wls.size) * info.wls.instances *
|
||||
dev->core_id_range;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue