OSDN Git Service

meta: Add a GLSL-based _mesa_meta_Clear() variant.
authorEric Anholt <eric@anholt.net>
Sun, 17 Jul 2011 21:53:16 +0000 (14:53 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 20 Jul 2011 18:03:20 +0000 (11:03 -0700)
commiteee570290aebc8a339acd063033e3daefcef2bc6
tree802efcb63e06052b44817e7908f86626a21fbad2
parentb56daf71d2f63d044d4c53ab49c6f87e02991a28
meta: Add a GLSL-based _mesa_meta_Clear() variant.

This cuts out a large portion of the overhead of glClear() from
resetting the texenv state and recomputing the fixed function
programs.  It also means less use of fixed function internally in our
GLES2 drivers, which is rather bogus.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/common/meta.c
src/mesa/drivers/common/meta.h