Mesa (master): intel/compiler: silence a warning of using different enum type

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 25 07:31:23 UTC 2019


Module: Mesa
Branch: master
Commit: 7a6e5a4bc34b24b5dce13ddff6d5730bb14cf1fa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a6e5a4bc34b24b5dce13ddff6d5730bb14cf1fa

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Mon Jun 24 14:36:28 2019 +0300

intel/compiler: silence a warning of using different enum type

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>

---

 src/intel/compiler/brw_vue_map.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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",




More information about the mesa-commit mailing list