i965: Account for offsets when updating SURFACE_STATE.
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Wed, 28 Nov 2012 10:34:21 +0000 (12:34 +0200)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 1 Feb 2013 19:58:12 +0000 (11:58 -0800)
commit45a28a927ab7f29ff325b9326d386a39ba538c18
treed19f4184a2312eccc1b548c2d1c99079164cbe6d
parent163b35e416349c0f079aa6a92eb0bade2cabf5bc
i965: Account for offsets when updating SURFACE_STATE.

If the offsets are present, this lets us specify a particular level and slice
in a shared region using the base level of an exported mip-map tree.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c