Path: blob/21.2-virgl/src/intel/genxml/genX_pack.h
7188 views
/*1* Copyright © 2015 Intel Corporation2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Software"),5* to deal in the Software without restriction, including without limitation6* the rights to use, copy, modify, merge, publish, distribute, sublicense,7* and/or sell copies of the Software, and to permit persons to whom the8* Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice (including the next11* paragraph) shall be included in all copies or substantial portions of the12* Software.13*14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR15* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,16* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL17* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER18* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING19* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS20* IN THE SOFTWARE.21*/2223#ifndef GENX_PACK_H24#define GENX_PACK_H2526#ifndef GFX_VERx1027# error "The GFX_VERx10 macro must be defined"28#endif2930#if (GFX_VERx10 == 40)31# include "genxml/gen4_pack.h"32#elif (GFX_VERx10 == 45)33# include "genxml/gen45_pack.h"34#elif (GFX_VERx10 == 50)35# include "genxml/gen5_pack.h"36#elif (GFX_VERx10 == 60)37# include "genxml/gen6_pack.h"38#elif (GFX_VERx10 == 70)39# include "genxml/gen7_pack.h"40#elif (GFX_VERx10 == 75)41# include "genxml/gen75_pack.h"42#elif (GFX_VERx10 == 80)43# include "genxml/gen8_pack.h"44#elif (GFX_VERx10 == 90)45# include "genxml/gen9_pack.h"46#elif (GFX_VERx10 == 110)47# include "genxml/gen11_pack.h"48#elif (GFX_VERx10 == 120)49# include "genxml/gen12_pack.h"50#elif (GFX_VERx10 == 125)51# include "genxml/gen125_pack.h"52#else53# error "Need to add a pack header include for this gen"54#endif5556#endif /* GENX_PACK_H */575859