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