intel/genxml: Build with gen20.xml

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25253>
This commit is contained in:
Jordan Justen
2022-06-28 12:04:51 -07:00
committed by Marge Bot
parent 065ff21bf2
commit 961aa68b23
4 changed files with 8 additions and 0 deletions

View File

@@ -50,6 +50,8 @@
# include "genxml/gen12_pack.h"
#elif (GFX_VERx10 == 125)
# include "genxml/gen125_pack.h"
#elif (GFX_VERx10 == 200)
# include "genxml/gen20_pack.h"
#else
# error "Need to add a pack header include for this gen"
#endif

View File

@@ -50,6 +50,8 @@
/* No RT support for this gfx ver */
#elif (GFX_VERx10 == 125)
# include "genxml/gen125_rt_pack.h"
#elif (GFX_VERx10 == 200)
# include "genxml/gen20_rt_pack.h"
#else
# error "Need to add a pack header include for this gen"
#endif

View File

@@ -82,6 +82,7 @@ static inline uint32_t ATTRIBUTE_PURE
${item.token_name}_${prop}(const struct intel_device_info *devinfo)
{
switch (devinfo->verx10) {
case 200: return ${item.get_prop(prop, 20)};
case 125: return ${item.get_prop(prop, 12.5)};
case 120: return ${item.get_prop(prop, 12)};
case 110: return ${item.get_prop(prop, 11)};

View File

@@ -92,6 +92,9 @@
#elif (GFX_VERx10 == 125)
# define GENX(X) GFX125_##X
# define genX(x) gfx125_##x
#elif (GFX_VERx10 == 200)
# define GENX(X) GFX20_##X
# define genX(x) gfx20_##x
#else
# error "Need to add prefixing macros for this gen"
#endif