i965: Enable ARB_transform_feedback2 on Gen7+ if register writes work.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 28 May 2013 03:09:56 +0000 (20:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 31 Oct 2013 18:04:37 +0000 (11:04 -0700)
commit129da5b1c87e4fd45b117a092e5d022ad7041e66
treeb0ad4ee60abe48e5c3d93f59876eddd67f7cee95
parent46d3c2bf4ddd227193b98861f1e632498fe547d8
i965: Enable ARB_transform_feedback2 on Gen7+ if register writes work.

With Linux 3.12, register writes work on Ivybridge and Baytrail, but not
Haswell.  That will be fixed in a future kernel revision, at which point
this extension will automatically be enabled.

v2: Use I915_GEM_DOMAIN_INSTRUCTION for the register read, and also
    correctly set the writeable flag when mapping (caught by Eric).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_extensions.c