i965: Store the GPU revision number in brw_context
authorNeil Roberts <neil@linux.intel.com>
Wed, 4 Mar 2015 14:13:40 +0000 (14:13 +0000)
committerNeil Roberts <neil@linux.intel.com>
Fri, 20 Mar 2015 13:25:40 +0000 (13:25 +0000)
commitc02c4b567ce001f6605c46e71e089692b837bf26
tree3761e98f4f1cc67755bef9ba994cf8a7fd5493fa
parent2fd21d8a84bd28461c964e2ab350389a55b7f001
i965: Store the GPU revision number in brw_context

brwContextInit now queries the GPU revision number via a new parameter
for DRM_I915_GETPARAM. This new parameter requires a kernel patch and
a patch to libdrm. If the kernel doesn't support it then it will
continue but set the revision number to -1. The intention is to use
this to implement workarounds that are only needed on certain
steppings of the GPU.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
configure.ac
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h