Mesa (master): radv/meta_decompress: fix pointer to integer conversion
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 15 12:35:53 UTC 2018
Module: Mesa
Branch: master
Commit: 43318d5857bd41981eb8a201982430f676e092c5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=43318d5857bd41981eb8a201982430f676e092c5
Author: Mauro Rossi <issor.oruam at gmail.com>
Date: Tue Aug 14 21:10:54 2018 +0200
radv/meta_decompress: fix pointer to integer conversion
VK_NULL_HANDLE replaces NULL to avoid following building error:
external/mesa/src/amd/vulkan/radv_meta_decompress.c:365:54: error:
incompatible pointer to integer conversion passing 'void *' to parameter
of type 'VkShaderModule' (aka 'unsigned long long') [-Werror,-Wint-conversion]
VkResult ret = create_pipeline(cmd_buffer->device, NULL, samples,
^~~~
prebuilts/clang/host/linux-x86/clang-4053586/lib64/clang/5.0.300080/include/stddef.h:105:16:
note: expanded from macro 'NULL'
# define NULL ((void*)0)
^~~~~~~~~~
external/mesa/src/amd/vulkan/radv_meta_decompress.c:97:32:
note: passing argument to parameter 'vs_module_h' here
VkShaderModule vs_module_h,
^
1 error generated.
Fixes: fbcd167314 ("radv: Add on-demand compilation of built-in shaders.")
Signed-off-by: Mauro Rossi <issor.oruam at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/amd/vulkan/radv_meta_decompress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_meta_decompress.c b/src/amd/vulkan/radv_meta_decompress.c
index 41ed7b6d04..b4f568ba2f 100644
--- a/src/amd/vulkan/radv_meta_decompress.c
+++ b/src/amd/vulkan/radv_meta_decompress.c
@@ -362,7 +362,7 @@ static void radv_process_depth_image_inplace(struct radv_cmd_buffer *cmd_buffer,
return;
if (!meta_state->depth_decomp[samples_log2].decompress_pipeline) {
- VkResult ret = create_pipeline(cmd_buffer->device, NULL, samples,
+ VkResult ret = create_pipeline(cmd_buffer->device, VK_NULL_HANDLE, samples,
meta_state->depth_decomp[samples_log2].pass,
meta_state->depth_decomp[samples_log2].p_layout,
&meta_state->depth_decomp[samples_log2].decompress_pipeline,
More information about the mesa-commit
mailing list