i965: Don't call abort() on an unknown device.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Feb 2014 09:54:23 +0000 (01:54 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Feb 2014 10:23:22 +0000 (02:23 -0800)
commiteaf3358e0a1323ed417b6875e70fdcdc30ed97e0
tree2f4e0b7e61e4f664976f7719b67be38cb96f3ddc
parentb47d231526821f5cff99546a984103a7222bc66c
i965: Don't call abort() on an unknown device.

If we don't recognize the PCI ID, we can't reasonably load the driver.
However, calling abort() is quite rude - it means the application that
tried to initialize us (possibly the X server) can't continue via
fallback paths.  We already have a more polite mechanism - failing to
create the context.  So, just use that.

While we're at it, improve the error message.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73024
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Lu Hua <huax.lu@intel.com>
src/mesa/drivers/dri/i965/brw_device_info.c
src/mesa/drivers/dri/i965/intel_screen.c