dzn: Fix incompatible pointer type error affecting MSYS2 MINGW32
authorpal1000 <liviuprodea@yahoo.com>
Fri, 8 Jul 2022 09:40:55 +0000 (12:40 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 8 Jul 2022 18:53:24 +0000 (18:53 +0000)
Suggested-by: Yonggang Luo <luoyonggang@gmail.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6807

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17414>

src/microsoft/vulkan/dzn_pipeline.c

index 24439f5..ec675fa 100644 (file)
@@ -356,7 +356,7 @@ dzn_pipeline_compile_shader(struct dzn_device *device,
 
    if (nir_to_dxil(nir, &opts, &dxil_blob)) {
       blob_finish_get_buffer(&dxil_blob, (void **)&slot->pShaderBytecode,
-                             &slot->BytecodeLength);
+                             (size_t *)&slot->BytecodeLength);
    } else {
       result = vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
    }