i965: solve cubemap negative x/y/z faces buffer offset issue in dEQP.
authorXu,Randy <randy.xu@intel.com>
Sat, 8 Oct 2016 08:15:59 +0000 (16:15 +0800)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 11 Oct 2016 04:44:18 +0000 (07:44 +0300)
commitd11a63d6e69298f34bb08334f637c100f6989ca7
treecdbe82a5a48fda9b767da15b75bb159f714aac21
parent64435fd888ec5932024292d87b0afcecbe5fb818
i965: solve cubemap negative x/y/z faces buffer offset issue in dEQP.

Add the miptree level/slice x/y_offset when count the surface offset
in brw_emit_surface_state. The surface offset has two parts, one is
from mt->offset, which should be 32 aligned in width/height for tiled
buffer; another is from mt->level[current_level].slice[current_slice].
x/y_offset.

This fix will solve 12 deqp failure
dEQP-EGL.functional.image.create.gles2_cubemap_negative_*_texture

Signed-off-by: Xu,Randy <randy.xu@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c