Skip to content

Commit 8dcebfe

Browse files
authored
Add Block ID for media (#95)
1 parent e1f634c commit 8dcebfe

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Source/inc/common/igfxfmid.h

+30
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,31 @@ typedef enum __GTTYPE
171171
GTTYPE_UNDEFINED,//Always at the end.
172172
}GTTYPE, *PGTTYPE;
173173

174+
typedef struct GFX_GMD_ID_DEF
175+
{
176+
union
177+
{
178+
struct
179+
{
180+
unsigned int RevisionID : 6;
181+
unsigned int Reserved : 8;
182+
unsigned int GMDRelease : 8;
183+
unsigned int GMDArch : 10;
184+
}GmdID;
185+
unsigned int Value;
186+
};
187+
}GFX_GMD_ID;
188+
189+
#define GFX_GET_GMD_ARCH_VERSION_RENDER(p) ((p).sRenderBlockID.GmdID.GMDArch)
190+
#define GFX_GET_GMD_ARCH_VERSION_DISPLAY(p) ((p).sDisplayBlockID.GmdID.GMDArch)
191+
#define GFX_GET_GMD_ARCH_VERSION_MEDIA(p) ((p).sMediaBlockID.GmdID.GMDArch)
192+
#define GFX_GET_GMD_RELEASE_VERSION_RENDER(p) ((p).sRenderBlockID.GmdID.GMDRelease)
193+
#define GFX_GET_GMD_RELEASE_VERSION_DISPLAY(p) ((p).sDisplayBlockID.GmdID.GMDRelease)
194+
#define GFX_GET_GMD_RELEASE_VERSION_MEDIA(p) ((p).sMediaBlockID.GmdID.GMDRelease)
195+
#define GFX_GET_GMD_REV_ID_RENDER(p) ((p).sRenderBlockID.GmdID.RevisionID)
196+
#define GFX_GET_GMD_REV_ID_DISPLAY(p) ((p).sDisplayBlockID.GmdID.RevisionID)
197+
#define GFX_GET_GMD_REV_ID_MEDIA(p) ((p).sMediaBlockID.GmdID.RevisionID)
198+
174199
/////////////////////////////////////////////////////////////////
175200
//
176201
// Platform types which are used during Sku/Wa initialization.
@@ -200,6 +225,11 @@ typedef struct PLATFORM_STR {
200225
// GT Type
201226
// Note: Is valid only till Gen9. From Gen10 SKUs are not identified by any GT flags. 'GT_SYSTEM_INFO' should be used instead.
202227
GTTYPE eGTType;
228+
229+
GFXCORE_FAMILY eMediaCoreFamily;
230+
GFX_GMD_ID sDisplayBlockID;
231+
GFX_GMD_ID sRenderBlockID;
232+
GFX_GMD_ID sMediaBlockID;
203233
} PLATFORM;
204234

205235
// add enums at the end

0 commit comments

Comments
 (0)