intel/isl: Explicitly cast between different enums
authorMatt Turner <mattst88@gmail.com>
Sat, 26 Aug 2017 03:08:43 +0000 (20:08 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 29 Aug 2017 22:20:57 +0000 (15:20 -0700)
commitc4ce12728e91a9786cf71a8628f535ddcb2a414b
treedbde70978cdf963001b832d6d62fb24830940a82
parent9fdbc273efdf20f325f9711997ae77016f3d4e0a
intel/isl: 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/isl/isl_surface_state.c