meta: Use instanced rendering for layered clears.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Aug 2014 23:03:01 +0000 (16:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 15 Aug 2014 23:53:48 +0000 (16:53 -0700)
commit2d1735187d6ec63704bb406b20aaa4f87648075e
treec12d2709f65cd910f972d7ff7042a5f4f468d2c0
parented6a4d6a7d197a54b3c325a7113db28372d479c2
meta: Use instanced rendering for layered clears.

Layered rendering is part of OpenGL 3.2; GL_ARB_draw_instanced is part
of OpenGL 3.1.  As such, all drivers supporting layered rendering
already support gl_InstanceID.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/common/meta.c