freedreno: support discarding previous rendering in special cases
authorRob Clark <robdclark@gmail.com>
Fri, 1 Jul 2016 16:38:16 +0000 (12:38 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 30 Jul 2016 13:23:42 +0000 (09:23 -0400)
commitba3009688892713b711ca6e9420d813f0bdce43f
treea9acb89c8f3996de84c1808d171fcdd314284e74
parent7105774babc4d23623c3547cd19122a55c1090db
freedreno: support discarding previous rendering in special cases

Basically, to "DCE" blits triggered by resource shadowing, in cases
where the levels are immediately completely overwritten.  For example,
mid-frame texture upload to level zero triggers shadowing and back-blits
to the remaining levels, which are immediately overwritten by
glGenerateMipmap().

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/drivers/freedreno/freedreno_draw.c
src/gallium/drivers/freedreno/freedreno_resource.c