meta: Unify the GLSL and fixed-function clear paths.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 5 May 2014 20:33:27 +0000 (13:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 6 May 2014 18:31:21 +0000 (11:31 -0700)
commit7c8df60f31baa106030f3ea3b1f7522244ddf983
treeee0bf3e16d987026f0b9a59167fa5a667eee1132
parentcde8bad1c9363ee293ae7844bcecb6179426ea65
meta: Unify the GLSL and fixed-function clear paths.

The majority of _mesa_meta_Clear and _mesa_meta_glsl_Clear was the same;
adding a boolean for whether to use GLSL allows us to share most of it
without polluting either path too much.

Tested for regressions by hacking i965 to always use the non-GLSL path.

Cc: "10.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/common/meta.c