i965/blorp: Implement logic for additional buffer formats.
authorPaul Berry <stereotype441@gmail.com>
Wed, 6 Jun 2012 18:05:02 +0000 (11:05 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 7 Jun 2012 18:03:15 +0000 (11:03 -0700)
commit530bda2aacf77b1e4661e5e5dd05cf108640e657
treeb4d676286710947504af2091c9ccc24368e8744b
parent9dbd0b677815f50a782149f4e20118bbce318f81
i965/blorp: Implement logic for additional buffer formats.

Previously the blorp engine only supported RGBA8 color buffers and
24-bit depth buffers.  This patch adds support for any color buffer
format that is supported as a render target, and for 16-bit and 32-bit
depth buffers.

This required threading the brw_context struct through into
brw_blorp_surface_info::set() so that it can consult the
brw->render_target_format array.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp