i965: Apply the miptree offset to surface state for renderbuffers
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Jan 2015 17:50:37 +0000 (09:50 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Jan 2015 18:21:07 +0000 (10:21 -0800)
commit117a1d69de84c6cb7d895ce7e157f434facde7c9
tree25c0f383435cedb7e55356f59d4015119d336856
parent404660e3c7bc6d13ae1d40185a02bfff6b956ac9
i965: Apply the miptree offset to surface state for renderbuffers

Previously, we were completely ignoring the mt->offset field for
renderbuffers.  While it does have some alignment constraints, it is valid
to use it.  This patch adds the code to each of the 4 surface state setup
functions to handle it.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen6_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
src/mesa/drivers/dri/i965/gen8_surface_state.c