i965/blorp: Thread level and layer through brw_blorp_blit_miptrees().
authorPaul Berry <stereotype441@gmail.com>
Thu, 16 Aug 2012 17:06:08 +0000 (10:06 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 12 Sep 2012 21:44:12 +0000 (14:44 -0700)
commit3123f0621561549c4566248100661ef77cab2834
tree9544870cf85c9648132d3e5dc33acf16697d0b30
parentbc6cafa045d8de839090fe2d82716b3afbd54701
i965/blorp: Thread level and layer through brw_blorp_blit_miptrees().

Previously, when performing a blit using the blorp engine, we failed
to account for the level and layer of the source and destination.  As
a result, all blits would occur between miplevel 0 and layer 0 of the
corresponding textures, regardless of which level/layer was bound to
the framebuffer.

This patch passes the correct level and layer through
brw_blorp_miptrees() into the brw_blorp_blit_params data structure.

Further patches in the series will adapt
gen{6,7}_blorp_emit_surface_state to make use of these parameters.

NOTE: This is a candidate for stable release branches.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
src/mesa/drivers/dri/intel/intel_mipmap_tree.c