i965: Only turn on ARB_compute_shader if we can write registers.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 5 Jan 2016 10:54:50 +0000 (02:54 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Jan 2016 02:07:27 +0000 (18:07 -0800)
commitbd21b54607615605b6335282029687bb0885f4ad
treef984c47f934eda86c79907c2a4bdc2166ffeb8b9
parent25b7e4a01f20df4ca94a5381dee5b33294f6c161
i965: Only turn on ARB_compute_shader if we can write registers.

Compute shaders require reconfiguring the L3 for shared local memory
support.  We have to be able to write the L3 registers to do that.

This effectively turns off compute shaders prior to Kernel 4.2.

(Previously, the extension enable was in an API_OPENGL_CORE conditional.
However, that isn't necessary - core Mesa extension handling already
restricts it properly.  I've moved it out in this patch.)

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/intel_extensions.c