anv: Explicitly cast between different enums
authorMatt Turner <mattst88@gmail.com>
Sat, 26 Aug 2017 03:08:58 +0000 (20:08 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 29 Aug 2017 22:20:57 +0000 (15:20 -0700)
commit5d4afef459629d62b5cce4af30ef021fa20620bb
tree947bceb80fa5e111e85a477edfbbda845f645edc
parent6cfc49287d6dd10cfc8b58906a01fbd3d5a100aa
anv: Explicitly cast between different enums

Fixes warnings like

warning: implicit conversion from enumeration type 'enum isl_format' to
different enumeration type 'enum GEN10_SURFACE_FORMAT'
[-Wenum-conversion]
         .SourceElementFormat = ISL_FORMAT_R32_UINT,
                                ^~~~~~~~~~~~~~~~~~~

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/intel/vulkan/genX_gpu_memcpy.c
src/intel/vulkan/genX_pipeline.c