mesa/src/intel
Iago Toral Quiroga 030e5f07a5 isl: render target cube maps should be handled as 2D images, not cubes
This fixes layered rendering Vulkan CTS tests with cube (arrays). We
also do this in the GL driver, see this code from gen8_depth_state.c
for example:

case GL_TEXTURE_CUBE_MAP_ARRAY:
case GL_TEXTURE_CUBE_MAP:
   /* The PRM claims that we should use BRW_SURFACE_CUBE for this
    * situation, but experiments show that gl_Layer doesn't work when we do
    * this.  So we use BRW_SURFACE_2D, since for rendering purposes this is
    * equivalent.
    */
   surftype = BRW_SURFACE_2D;
   depth *= 6;
   break;

So I guess we simply forgot to port this workaround to Vulkan.

v2: tweak the conditions so the special case is cube texture sampling
    rather than anything else (Jason)

Fixes:
dEQP-VK.geometry.layered.cube*

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2017-01-09 11:43:07 +01:00
..
blorp intel/blorp_blit: Fix max blit size for gen6 2016-12-26 08:50:21 -08:00
common i965: Fix a mistake from porting the URB allocation code to arrays. 2016-11-23 16:57:29 -08:00
genxml genxml: Make Gen8 3DSTATE_DS SIMD8 enable work like Gen9+. 2016-12-14 14:59:06 -08:00
isl isl: render target cube maps should be handled as 2D images, not cubes 2017-01-09 11:43:07 +01:00
tools intel/aubinator: fix 32bit shift overflow warning 2016-12-11 20:04:15 +01:00
vulkan anv: don't skip the VUE header if we are reading gl_Layer in a fragment shader 2017-01-09 11:43:07 +01:00
Android.blorp.mk intel/blorp: fix typo in android makefile 2016-09-03 08:22:53 -07:00
Android.common.mk android: intel: fix include paths in new "common" library 2016-09-03 20:03:16 -07:00
Android.genxml.mk android: intel: Flatten the makefile structure 2016-08-29 12:17:34 -07:00
Android.isl.mk android: intel: Flatten the makefile structure 2016-08-29 12:17:34 -07:00
Android.mk intel: Add a new "common" library for more code sharing 2016-09-03 08:23:06 -07:00
Makefile.am intel: Add a new "common" library for more code sharing 2016-09-03 08:23:06 -07:00
Makefile.blorp.am i965: Move blorp into src/intel/blorp 2016-08-29 12:17:34 -07:00
Makefile.common.am intel: Add a new "common" library for more code sharing 2016-09-03 08:23:06 -07:00
Makefile.genxml.am genxml: Handle failure of Python codegen scripts. 2016-10-26 14:06:45 -07:00
Makefile.isl.am intel: Add a new "common" library for more code sharing 2016-09-03 08:23:06 -07:00
Makefile.sources intel: Share URB configuration code between GL and Vulkan. 2016-11-19 11:40:01 -08:00