i965: Explicitly cast between different enums
authorMatt Turner <mattst88@gmail.com>
Sat, 26 Aug 2017 03:09:10 +0000 (20:09 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 29 Aug 2017 22:20:57 +0000 (15:20 -0700)
commit239bbdfaa231a167abfb19480f0a78fe9f663d69
tree30929bd9907d747fe6bc81731ff01fb5aea1d742
parentdff75c7175d7a06cdeafa5c119f3749e84e2561b
i965: 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/mesa/drivers/dri/i965/genX_state_upload.c