Mesa (master): intel/compiler: Add GEN125 to enum gen

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 1 19:21:27 UTC 2020


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

Author: Jordan Justen <jordan.l.justen at intel.com>
Date:   Mon Nov 30 13:15:18 2020 -0800

intel/compiler: Add GEN125 to enum gen

Recommended-by: Jason Ekstrand <jason at jlekstrand.net>
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7757>

---

 src/intel/compiler/brw_gen_enum.h | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/intel/compiler/brw_gen_enum.h b/src/intel/compiler/brw_gen_enum.h
index 174660089f5..c224e9b7e17 100644
--- a/src/intel/compiler/brw_gen_enum.h
+++ b/src/intel/compiler/brw_gen_enum.h
@@ -25,17 +25,18 @@
 #include "dev/gen_device_info.h"
 
 enum gen {
-   GEN4  = (1 << 0),
-   GEN45 = (1 << 1),
-   GEN5  = (1 << 2),
-   GEN6  = (1 << 3),
-   GEN7  = (1 << 4),
-   GEN75 = (1 << 5),
-   GEN8  = (1 << 6),
-   GEN9  = (1 << 7),
-   GEN10 = (1 << 8),
-   GEN11 = (1 << 9),
-   GEN12 = (1 << 10),
+   GEN4    = (1 << 0),
+   GEN45   = (1 << 1),
+   GEN5    = (1 << 2),
+   GEN6    = (1 << 3),
+   GEN7    = (1 << 4),
+   GEN75   = (1 << 5),
+   GEN8    = (1 << 6),
+   GEN9    = (1 << 7),
+   GEN10   = (1 << 8),
+   GEN11   = (1 << 9),
+   GEN12   = (1 << 10),
+   GEN125  = (1 << 11),
    GEN_ALL = ~0
 };
 
@@ -54,7 +55,7 @@ gen_from_devinfo(const struct gen_device_info *devinfo)
    case 8: return GEN8;
    case 9: return GEN9;
    case 11: return GEN11;
-   case 12: return GEN12;
+   case 12: return gen_device_info_is_12hp(devinfo) ? GEN125 : GEN12;
    default:
       unreachable("not reached");
    }



More information about the mesa-commit mailing list