diff --git a/src/intel/compiler/brw_vue_map.c b/src/intel/compiler/brw_vue_map.c index 76ca4004230..02ca51b1404 100644 --- a/src/intel/compiler/brw_vue_map.c +++ b/src/intel/compiler/brw_vue_map.c @@ -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",