i965/blorp/gen6: Simplify hiz surface setup
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 10 Jan 2017 08:13:30 +0000 (10:13 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 27 Jan 2017 06:57:26 +0000 (08:57 +0200)
commit40bf622cedda2fba54488188c98591354f16a132
tree980330a3ad29de66f7ca2a1e9b56b8d53b3b2ac4
parent5201d2991b0a9e6d6a24bd9b0d07182bc14221bd
i965/blorp/gen6: Simplify hiz surface setup

In intel_hiz_miptree_buf_create() intel_miptree_aux_buffer::bo
is unconditionally initialised to point to the same buffer
object as hiz_mt does. Also intel_miptree_aux_buffer::offset
is initialised to zero (calloc()).

This will make following patches significantly simpler to read.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_blorp.c