intel/compiler: Add GEN125 to enum gen

Recommended-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7757>
This commit is contained in:
Jordan Justen 2020-11-30 13:15:18 -08:00 committed by Marge Bot
parent cd3251d6ba
commit 071fd55381
1 changed files with 13 additions and 12 deletions

View File

@ -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");
}