i965/miptree: Stop setting total_width/height for existing bo
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 27 Jun 2017 18:52:19 +0000 (21:52 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 18 Jul 2017 18:36:13 +0000 (21:36 +0300)
commitd401bd3e8fc26be9966375f345e496c103f70c3c
tree88a0dcb2eb180f43a8d5c40878e8313ca1a9ace6
parent0a287e45011f51b06b9fc5ec5178031f07a9b0b5
i965/miptree: Stop setting total_width/height for existing bo

Now that image surface vertical slice calculator doesn't depend
on total_height, total dimensions are only needed when new buffer
objects are created. Therefore one can safely ignore them when
miptrees are created for already exisiting buffer objects.

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