i965: Implement fast color clears using meta operations

Graphics / Mesa 3D Graphics Library / Mesa - Kristian Høgsberg [bitplanet.net] - 15 August 2014 13:25 UTC

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.

2f28a0d i965: Implement fast color clears using meta operations
src/mesa/drivers/dri/i965/Makefile.sources | 2 +-
src/mesa/drivers/dri/i965/brw_blorp.h | 8 -
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 4 +
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 615 --------------------
src/mesa/drivers/dri/i965/brw_clear.c | 12 +-
src/mesa/drivers/dri/i965/brw_context.c | 1 +
src/mesa/drivers/dri/i965/brw_context.h | 15 +
src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 704 +++++++++++++++++++++++
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 +-
src/mesa/drivers/dri/i965/intel_tex_copy.c | 21 +-
10 files changed, 744 insertions(+), 642 deletions(-)

Upstream: cgit.freedesktop.org


  • Share