svga: add support for rendering to cubemap array
authorCharmaine Lee <charmainel@vmware.com>
Fri, 5 May 2017 21:32:45 +0000 (14:32 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 10 Sep 2018 19:07:30 +0000 (13:07 -0600)
Fixes piglit test arb_texture_cube_map_array-fbo-cubemap-array

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_surface.h

index 6c1e0e72165d2da038f882952250681b88cd65d6..b1a7728084df477d4bbb668792d9ec195e1e4a17 100644 (file)
@@ -144,6 +144,7 @@ svga_resource_type(enum pipe_texture_target target)
    case PIPE_TEXTURE_2D:
    case PIPE_TEXTURE_2D_ARRAY:
    case PIPE_TEXTURE_CUBE:
+   case PIPE_TEXTURE_CUBE_ARRAY:
       /* drawing to cube map is treated as drawing to 2D array */
       return SVGA3D_RESOURCE_TEXTURE2D;
    case PIPE_TEXTURE_3D: