mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
iris: Nuke pci_id from iris_screen
We have the same information in devinfo. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19359>
This commit is contained in:
parent
bb9f66800c
commit
191f9a39c9
3 changed files with 2 additions and 6 deletions
|
|
@ -268,7 +268,7 @@ iris_disk_cache_init(struct iris_screen *screen)
|
|||
/* array length = print length + nul char + 1 extra to verify it's unused */
|
||||
char renderer[11];
|
||||
UNUSED int len =
|
||||
snprintf(renderer, sizeof(renderer), "iris_%04x", screen->pci_id);
|
||||
snprintf(renderer, sizeof(renderer), "iris_%04x", screen->devinfo.pci_device_id);
|
||||
assert(len == sizeof(renderer) - 2);
|
||||
|
||||
const struct build_id_note *note =
|
||||
|
|
|
|||
|
|
@ -358,7 +358,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_VENDOR_ID:
|
||||
return 0x8086;
|
||||
case PIPE_CAP_DEVICE_ID:
|
||||
return screen->pci_id;
|
||||
return screen->devinfo.pci_device_id;
|
||||
case PIPE_CAP_VIDEO_MEMORY:
|
||||
return iris_get_video_memory(screen);
|
||||
case PIPE_CAP_MAX_SHADER_PATCH_VARYINGS:
|
||||
|
|
@ -787,7 +787,6 @@ iris_screen_create(int fd, const struct pipe_screen_config *config)
|
|||
|
||||
if (!intel_get_device_info_from_fd(fd, &screen->devinfo))
|
||||
return NULL;
|
||||
screen->pci_id = screen->devinfo.pci_device_id;
|
||||
|
||||
p_atomic_set(&screen->refcount, 1);
|
||||
|
||||
|
|
|
|||
|
|
@ -165,9 +165,6 @@ struct iris_screen {
|
|||
*/
|
||||
int winsys_fd;
|
||||
|
||||
/** PCI ID for our GPU device */
|
||||
int pci_id;
|
||||
|
||||
struct iris_vtable vtbl;
|
||||
|
||||
/** Global program_string_id counter (see get_program_string_id()) */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue