intel/dev: Add devinfo genx10 field

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9329>
This commit is contained in:
Jordan Justen
2021-02-27 15:09:56 -08:00
parent 36dd7c44f6
commit d846901d9d
7 changed files with 20 additions and 0 deletions
+5
View File
@@ -106,6 +106,7 @@ static const struct gen_device_info gen_device_info_i965 = {
static const struct gen_device_info gen_device_info_g4x = {
.gen = 4,
.genx10 = 45,
.has_pln = true,
.has_compr4 = true,
.has_surface_tile_offset = true,
@@ -300,6 +301,7 @@ static const struct gen_device_info gen_device_info_byt = {
#define HSW_FEATURES \
GEN7_FEATURES, \
.is_haswell = true, \
.genx10 = 75, \
.supports_simd16_3src = true, \
.has_resource_streamer = true
@@ -1424,6 +1426,9 @@ gen_get_device_info_from_fd(int fd, struct gen_device_info *devinfo)
return false;
}
if (devinfo->genx10 == 0)
devinfo->genx10 = devinfo->gen * 10;
/* remaining initializion queries the kernel for device info */
if (devinfo->no_hw)
return true;
+2
View File
@@ -47,6 +47,8 @@ struct drm_i915_query_topology_info;
struct gen_device_info
{
int gen; /**< Generation number: 4, 5, 6, 7, ... */
/* Driver internal number used to differentiate platforms. */
int genx10;
int revision;
int gt;