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:
squidbus 2026-05-28 04:38:03 -07:00
parent 2fe85f966e
commit aeecafff95

View file

@ -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;