intel/isl: Treat 3-D textures as 2-D arrays for rendering
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 12 Sep 2016 15:13:43 +0000 (08:13 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 12 Sep 2016 23:48:56 +0000 (16:48 -0700)
commit48f195d7c6483ed00a6d02526c6f35bb527fcaba
treeb35755ac1d3e3712188c5742fed587443f8ff604
parent63fe9ab8943741cc21d8ba54566ddc49275a6b58
intel/isl: Treat 3-D textures as 2-D arrays for rendering

In particular, this means that isl_view::base_array_layer and
isl_view::array_len get applied to 3-D textures but only when rendering.
We were already applying isl_view::base_array_layer for rendering into 3-D
textures so this isn't a huge deviation.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/isl/isl.h
src/intel/isl/isl_surface_state.c