diff options
author | Mark Janes <[email protected]> | 2019-07-25 15:57:30 -0700 |
---|---|---|
committer | Mark Janes <[email protected]> | 2019-08-01 16:39:56 -0700 |
commit | 086c486a75fe64440cb1e76de47b3838215246b1 (patch) | |
tree | e5a808f4953f30752630e1af7fe03fbf3beac9d3 /src/intel/common | |
parent | d594d2a0524ff8d7c14b4842119936163bfa9318 (diff) |
intel/device: rename gen_get_device_info
Rename the original device info initialization routine so callers
don't mistakenly call the wrong one:
gen_get_device_info_from_fd:
Queries kernel for full device info, including topology
details.
gen_get_device_info_from_pci_id:
Partially initializes device info based on PCI ID lookup, when
the kernel is not available.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/common')
-rw-r--r-- | src/intel/common/tests/gen_mi_builder_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/common/tests/gen_mi_builder_test.cpp b/src/intel/common/tests/gen_mi_builder_test.cpp index c0902294931..4002619dc8e 100644 --- a/src/intel/common/tests/gen_mi_builder_test.cpp +++ b/src/intel/common/tests/gen_mi_builder_test.cpp @@ -182,7 +182,7 @@ gen_mi_builder_test::SetUp() ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, (void *)&getparam), 0) << strerror(errno); - ASSERT_TRUE(gen_get_device_info(device_id, &devinfo)); + ASSERT_TRUE(gen_get_device_info_from_pci_id(device_id, &devinfo)); if (devinfo.gen != GEN_GEN || devinfo.is_haswell != GEN_IS_HASWELL) { close(fd); fd = -1; |