intel/blorp: Set needs_(dst|src)_offset for Gen4 cubemaps
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 31 May 2017 18:29:14 +0000 (11:29 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 20 Jun 2017 18:07:02 +0000 (11:07 -0700)
commitb2dd61196e7fb4ee9b4d1be7b83c2bdfa7f12021
treedce1d49ad5aa7a246458370c2f5153e64d829043
parentcc14286930ede79f747d9c00bb54d9c175a2ade6
intel/blorp: Set needs_(dst|src)_offset for Gen4 cubemaps

We call convert_to_single_slice so they may end up with a non-trivial
offset that needs to be taken into account.

v2 (idr): Also set needs_src_offset.  Suggested by Jason.

Fixes ES2-CTS.functional.texture.specification.basic_copyteximage2d.cube_rgba
and ES2-CTS.functional.texture.specification.basic_copytexsubimage2d.cube_rgba
on G45.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101284
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/blorp/blorp_blit.c