From 6ea2ea0bb0e04ee658ed8ebb4e51515b2f4d20fb Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Sat, 30 Sep 2023 01:29:41 +0300 Subject: [PATCH] anv: fix internal compute copy shader build Signed-off-by: Lionel Landwerlin Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9907 Fixes: 2cc5b3b1e0 ("anv: add a memcpy compute internal kernel") Part-of: --- src/intel/vulkan/anv_internal_kernels.h | 1 + src/intel/vulkan/shaders/memcpy_compute.glsl | 1 + 2 files changed, 2 insertions(+) diff --git a/src/intel/vulkan/anv_internal_kernels.h b/src/intel/vulkan/anv_internal_kernels.h index 87445b8..f93c827 100644 --- a/src/intel/vulkan/anv_internal_kernels.h +++ b/src/intel/vulkan/anv_internal_kernels.h @@ -135,6 +135,7 @@ struct anv_query_copy_params { */ struct anv_memcpy_shader_params { uint32_t num_dwords; + uint32_t pad; }; struct anv_memcpy_params { diff --git a/src/intel/vulkan/shaders/memcpy_compute.glsl b/src/intel/vulkan/shaders/memcpy_compute.glsl index 30b5e64..61c399f 100644 --- a/src/intel/vulkan/shaders/memcpy_compute.glsl +++ b/src/intel/vulkan/shaders/memcpy_compute.glsl @@ -39,6 +39,7 @@ layout(set = 0, binding = 1, std430) buffer Storage1 { /* This data will be provided through push constants. */ layout(set = 0, binding = 2) uniform block { uint num_dwords; + uint pad; }; void main() -- 2.7.4