mesa/src
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
..
amd spirv: add support for doubles to OpSpecConstant 2017-01-09 09:10:13 +01:00
compiler spirv: enable SpvCapabilityFloat64 only to supported platforms 2017-01-09 10:44:07 +01:00
egl egl: Emit correct error when robust context creation fails 2016-12-27 10:21:29 -08:00
gallium gallium/radeon: use the internal clear_buffer callback to fix r600g 2017-01-06 23:32:25 +01:00
gbm gbm: request correct version of the DRI2_FENCE extension 2016-11-22 15:56:44 +00:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx dri3: Fix MakeCurrent without a default framebuffer 2017-01-05 20:52:01 +01:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel isl: render target cube maps should be handled as 2D images, not cubes 2017-01-09 11:43:07 +01:00
loader loader: automake: whitespace cleanup 2016-11-21 14:46:40 +00:00
mapi glapi: add missing INTEL_conservative_rasterization 2016-12-13 16:27:56 +00:00
mesa nir/i965: use two slots from inputs_read for dvec3/dvec4 vertex input attributes 2017-01-09 10:42:22 +01:00
util util: import CRC32 implementation from gallium 2016-11-22 18:05:51 +01:00
vulkan/wsi vulkan/wsi/x11: don't crash on null wsi x11 connection 2016-12-22 14:09:46 -08:00
Makefile.am amd: flatten amd/common makefile structure 2016-11-15 20:04:37 +00:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00