i965: Only enable __DRI2_ROBUSTNESS if kernel support is available
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 20 Nov 2013 01:01:23 +0000 (17:01 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 26 Nov 2013 21:10:52 +0000 (13:10 -0800)
commit9b1c68638d8096304d3c4e0cceb97bb4dc61acc5
tree42f67b22556ced73b9c3d70086489b2c6fb1aec9
parent0ae84399069b77e9464462c53405baf6f854a6fd
i965: Only enable __DRI2_ROBUSTNESS if kernel support is available

Rather than always advertising the extension but failing to create a
context with reset notifiction, just don't advertise it.  I don't know
why it didn't occur to me to do it this way in the first place.

NOTE: Kristian requested that I provide a follow-up for master that
dynamically generates the list of DRI extensions instead of selected
between two hardcoded lists.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Suggested-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Cc: "10.0" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_screen.c