meta: Use ARB_explicit_attrib_location in the rest of the meta shaders.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 15 Mar 2016 18:13:25 +0000 (11:13 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Mar 2016 07:09:56 +0000 (00:09 -0700)
commitb566317e7e6eb78a22cac759a4af2e9d78f74a32
treef587ab9b4363e3310624267708d2f56d0562b63d
parent9d9965c06f18f7d609933e511b98514570e85909
meta: Use ARB_explicit_attrib_location in the rest of the meta shaders.

This is cleaner than using glBindAttribLocation().

Not all drivers support the extension, but I don't think those drivers
use GLSL in the first place.  Apparently some Meta shaders already use
GL_ARB_explicit_attrib_location, so I think it should be okay.

Honestly, I'm not sure how the old code worked anyway - we bound the
attribute location for "texcoords", while all the shaders capitalized
or spelled it differently.

v2: Convert another instance in brw_meta_fast_clear.c.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/common/meta.c
src/mesa/drivers/common/meta_blit.c
src/mesa/drivers/dri/i965/brw_meta_fast_clear.c