[Mesa-dev] [PATCH] anv: fix build errors on android

Samuel Iglesias Gonsálvez siglesias at igalia.com
Thu Aug 31 06:06:16 UTC 2017


Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>

On Thu, 2017-08-31 at 08:52 +0300, Tapani Pälli wrote:
> error: incompatible pointer to integer conversion initializing
> 'VkFence'
>    (aka 'unsigned long long') with an expression of type 'void *' [-
> Werror,-Wint-conversion]
> 
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
>  src/intel/vulkan/anv_queue.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/intel/vulkan/anv_queue.c
> b/src/intel/vulkan/anv_queue.c
> index 429bac9739..d675e8667e 100644
> --- a/src/intel/vulkan/anv_queue.c
> +++ b/src/intel/vulkan/anv_queue.c
> @@ -169,7 +169,7 @@ VkResult anv_QueueSubmit(
>  
>     for (uint32_t i = 0; i < submitCount; i++) {
>        /* Fence for this submit.  NULL for all but the last one */
> -      VkFence submit_fence = (i == submitCount - 1) ? fence : NULL;
> +      VkFence submit_fence = (i == submitCount - 1) ? fence : 0;
>  
>        if (pSubmits[i].commandBufferCount == 0) {
>           /* If we don't have any command buffers, we need to submit
> a dummy
> @@ -197,7 +197,7 @@ VkResult anv_QueueSubmit(
>  
>           /* Fence for this execbuf.  NULL for all but the last one
> */
>           VkFence execbuf_fence =
> -            (j == pSubmits[i].commandBufferCount - 1) ? submit_fence
> : NULL;
> +            (j == pSubmits[i].commandBufferCount - 1) ? submit_fence
> : 0;
>  
>           const VkSemaphore *in_semaphores = NULL, *out_semaphores =
> NULL;
>           uint32_t num_in_semaphores = 0, num_out_semaphores = 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170831/44303b58/attachment-0001.sig>


More information about the mesa-dev mailing list