Skip to content

crocus: Use PCI IDs to detect devices and add pipe driver

Zoltán Böszörményi requested to merge zboszor/mesa:pipe-crocus into main

driver_map[] currently triggers for iris first because iris is listed before crocus, then fails in driver initialization.

Calling is_kernel_i915() to detect which driver is to be used is too simple minded, as this would trigger for iris, crocus, i965 and i915.

Copy the PCI IDs that can be handled by crocus from pci_ids/i965_pci_ids.h as pci_ids/crocus_pci_ids.h, move crocus before iris in driver_map[] and change crocus to use the PCI ID list.

Also, add a pipe driver for crocus. (I am not sure it's necessary, just copying what iris does here.)

This allows Xorg to load the crocus driver with both xf86-video-intel using SNA or modesetting.

@airlied

Merge request reports