dzn: Fix incompatible pointer type error affecting MSYS2 MINGW32

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>
This commit is contained in:
pal1000 2022-07-08 12:40:55 +03:00 committed by Marge Bot
parent 81968e80cb
commit 36516b869e
1 changed files with 1 additions and 1 deletions

View 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);
}