i965: Guard access to gl_Layer by extension #ifdef
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 15 Aug 2014 22:59:59 +0000 (15:59 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 15 Aug 2014 23:09:11 +0000 (16:09 -0700)
commit14c1a2a94c3d7c0ba375d2b0953b025112b21392
tree857854d87e8359f1a930716da211785f9431b8b7
parent1e1d2857011cce13c1d67eec6711381debcd26f3
i965: Guard access to gl_Layer by extension #ifdef

Only assign gl_Layer if we have GL_AMD_vertex_shader_layer.  Gen6 doesn't
(currently) have that extension, but it also doesn't support layered
rendering.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_meta_fast_clear.c