mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 08:38:08 +02:00
It could be confusing that a newer platform named with a smaller number than a half-generation of an older platform like 'gfx20' and 'gfx75' in xml files. Down the road, it can be a little worse once we pass something like 'gfx40' when there is already a gfx45.xml for the oldest platform. Unify naming xml files with verx10 numbers to resolve the issue. Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31943>
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/* Copyright © 2023 Intel Corporation
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef GENX_CL_PACK_H
|
|
#define GENX_CL_PACK_H
|
|
|
|
#ifndef GFX_VERx10
|
|
# error "The GFX_VERx10 macro must be defined"
|
|
#endif
|
|
|
|
#if (GFX_VERx10 == 40)
|
|
# include "genxml/gen40_cl_pack.h"
|
|
#elif (GFX_VERx10 == 45)
|
|
# include "genxml/gen45_cl_pack.h"
|
|
#elif (GFX_VERx10 == 50)
|
|
# include "genxml/gen50_cl_pack.h"
|
|
#elif (GFX_VERx10 == 60)
|
|
# include "genxml/gen60_cl_pack.h"
|
|
#elif (GFX_VERx10 == 70)
|
|
# include "genxml/gen70_cl_pack.h"
|
|
#elif (GFX_VERx10 == 75)
|
|
# include "genxml/gen75_cl_pack.h"
|
|
#elif (GFX_VERx10 == 80)
|
|
# include "genxml/gen80_cl_pack.h"
|
|
#elif (GFX_VERx10 == 90)
|
|
# include "genxml/gen90_cl_pack.h"
|
|
#elif (GFX_VERx10 == 110)
|
|
# include "genxml/gen110_cl_pack.h"
|
|
#elif (GFX_VERx10 == 120)
|
|
# include "genxml/gen120_cl_pack.h"
|
|
#elif (GFX_VERx10 == 125)
|
|
# include "genxml/gen125_cl_pack.h"
|
|
#elif (GFX_VERx10 == 200)
|
|
# include "genxml/gen200_cl_pack.h"
|
|
#elif (GFX_VERx10 == 300)
|
|
# include "genxml/gen300_cl_pack.h"
|
|
#else
|
|
# error "Need to add a pack header include for this gen"
|
|
#endif
|
|
|
|
#endif /* GENX_CL_PACK_H */
|