summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMark Janes <[email protected]>2019-07-24 15:21:36 -0700
committerMark Janes <[email protected]>2019-08-01 16:39:48 -0700
commit49465f1330f2c7bc43815ca935cbacc81cd97ff5 (patch)
tree6d1d4161e90c8a86aefaf884ded912e3897bae54 /src/gallium
parent96e1c945f2bc4047a603753ae10fc4f27754361c (diff)
iris/screen: use initialization routine for gen_device_info
Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/iris/iris_screen.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index ceacae239a0..9aea9e963c2 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -616,17 +616,15 @@ iris_screen_create(int fd, const struct pipe_screen_config *config)
return NULL;
screen->fd = fd;
- screen->pci_id = iris_getparam_integer(screen, I915_PARAM_CHIPSET_ID);
- if (!gen_get_device_info(screen->pci_id, &screen->devinfo))
+ if (!gen_get_device_info_from_fd(fd, &screen->devinfo))
return NULL;
+ screen->pci_id = screen->devinfo.chipset_id;
+ screen->no_hw = screen->devinfo.no_hw;
if (screen->devinfo.gen < 8 || screen->devinfo.is_cherryview)
return NULL;
- screen->devinfo.timestamp_frequency =
- iris_getparam_integer(screen, I915_PARAM_CS_TIMESTAMP_FREQUENCY);
-
screen->aperture_bytes = get_aperture_size(fd);
if (getenv("INTEL_NO_HW") != NULL)