mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 17:50:29 +01:00
lp: align memory for long16 CL types
Fixes following OpenCL CTS test flakes: basic kernel_memory_alignment_constant basic kernel_memory_alignment_global vectors vec_align_array vectors vec_align_struct_arr Signed-off-by: Karol Herbst <git@karolherbst.de> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23574>
This commit is contained in:
parent
8e7d434b8c
commit
1a975bc278
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ llvmpipe_resource_create_all(struct pipe_screen *_screen,
|
|||
lpr->size_required += (LP_RASTER_BLOCK_SIZE - 1) * 4 * sizeof(float);
|
||||
|
||||
if (alloc_backing) {
|
||||
uint64_t alignment = 64;
|
||||
uint64_t alignment = sizeof(uint64_t) * 16;
|
||||
|
||||
if (templat->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT)
|
||||
os_get_page_size(&alignment);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue