mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
kk: Fix precomp data buffer alignment
Metal wants the buffer to be aligned to 8 Reviewed-by: Aitor Camacho <aitor@lunarg.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41873>
This commit is contained in:
parent
2fe85f966e
commit
aeecafff95
1 changed files with 1 additions and 1 deletions
|
|
@ -505,7 +505,7 @@ kk_dispatch_precomp(struct kk_cmd_buffer *cmd, struct kk_grid grid,
|
|||
mtl_compute_encoder *encoder =
|
||||
pre_gfx ? kk_encoder_pre_gfx_encoder(cmd) : kk_compute_encoder(cmd);
|
||||
|
||||
struct kk_ptr data_gpu = kk_pool_upload(cmd, data, data_size, 4u);
|
||||
struct kk_ptr data_gpu = kk_pool_upload(cmd, data, data_size, 8u);
|
||||
if (unlikely(!data_gpu.gpu))
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue