intel/compiler: silence a warning of using different enum type
authorTapani Pälli <tapani.palli@intel.com>
Mon, 24 Jun 2019 11:36:28 +0000 (14:36 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 25 Jun 2019 07:09:22 +0000 (10:09 +0300)
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/intel/compiler/brw_vue_map.c

index 76ca400423052874a7c99862b6b6f2863bb841e4..02ca51b1404fb291581e78e7e0c2bab1f44c1e97 100644 (file)
@@ -266,7 +266,7 @@ varying_name(brw_varying_slot slot)
    assume(slot < BRW_VARYING_SLOT_COUNT);
 
    if (slot < VARYING_SLOT_MAX)
-      return gl_varying_slot_name(slot);
+      return gl_varying_slot_name((gl_varying_slot)slot);
 
    static const char *brw_names[] = {
       [BRW_VARYING_SLOT_NDC - VARYING_SLOT_MAX] = "BRW_VARYING_SLOT_NDC",