i965: Implement fast color clears using meta operations
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 7 Jul 2014 23:44:58 +0000 (16:44 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 15 Aug 2014 18:25:47 +0000 (11:25 -0700)
commit2f28a0dc23165123cf1e8b5942acad37878edd8a
treefc2ea0cff3565c17b768fa499bdc4991082cf9b0
parentf9dc7aabb3273d6d8a54c6778a5695a8527f4454
i965: Implement fast color clears using meta operations

This patch uses the infrastructure put in place by previous patches
to implement fast color clears and replicated color clears in terms of
meta operations.

This works all the way back to gen7 where fast clear was introduced and
adds support for fast clear on gen8.  It replaces the blorp path
completely and improves on a few cases.  Layered clears are now done
using instanced rendering and multiple render-target clears use a
MRT shader with rep16 writes.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp [deleted file]
src/mesa/drivers/dri/i965/brw_clear.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_meta_fast_clear.c [new file with mode: 0644]
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_tex_copy.c