intel: Bail gracefully if we encounter an unknown Intel device
Otherwise we end up with X hitting a fail-loop as the embedded libGL stacks asserts whilst initialising. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>main
parent
9f823ca236
commit
9a2b57d229
|
@ -3044,9 +3044,11 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size)
|
|||
else if (IS_GEN6(bufmgr_gem->pci_device))
|
||||
bufmgr_gem->gen = 6;
|
||||
else if (IS_GEN7(bufmgr_gem->pci_device))
|
||||
bufmgr_gem->gen = 7;
|
||||
else
|
||||
assert(0);
|
||||
bufmgr_gem->gen = 7;
|
||||
else {
|
||||
free(bufmgr_gem);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (IS_GEN3(bufmgr_gem->pci_device) &&
|
||||
bufmgr_gem->gtt_size > 256*1024*1024) {
|
||||
|
|
Loading…
Reference in New Issue