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/isl | |
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/isl')
-rw-r--r-- | src/intel/isl/tests/isl_surf_get_image_offset_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/isl/tests/isl_surf_get_image_offset_test.c b/src/intel/isl/tests/isl_surf_get_image_offset_test.c index 703f176c6b3..6e5a76e7736 100644 --- a/src/intel/isl/tests/isl_surf_get_image_offset_test.c +++ b/src/intel/isl/tests/isl_surf_get_image_offset_test.c @@ -125,7 +125,7 @@ test_bdw_2d_r8g8b8a8_unorm_512x512_array01_samples01_noaux_tiley0(void) bool ok; struct gen_device_info devinfo; - t_assert(gen_get_device_info(BDW_GT2_DEVID, &devinfo)); + t_assert(gen_get_device_info_from_pci_id(BDW_GT2_DEVID, &devinfo)); struct isl_device dev; isl_device_init(&dev, &devinfo, /*bit6_swizzle*/ false); @@ -173,7 +173,7 @@ test_bdw_2d_r8g8b8a8_unorm_1024x1024_array06_samples01_noaux_tiley0(void) bool ok; struct gen_device_info devinfo; - t_assert(gen_get_device_info(BDW_GT2_DEVID, &devinfo)); + t_assert(gen_get_device_info_from_pci_id(BDW_GT2_DEVID, &devinfo)); struct isl_device dev; isl_device_init(&dev, &devinfo, /*bit6_swizzle*/ false); @@ -234,7 +234,7 @@ test_bdw_3d_r8g8b8a8_unorm_256x256x256_levels09_tiley0(void) bool ok; struct gen_device_info devinfo; - t_assert(gen_get_device_info(BDW_GT2_DEVID, &devinfo)); + t_assert(gen_get_device_info_from_pci_id(BDW_GT2_DEVID, &devinfo)); struct isl_device dev; isl_device_init(&dev, &devinfo, /*bit6_swizzle*/ false); |