v3d: remove obsolete assertion
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 29 Oct 2019 08:32:05 +0000 (09:32 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 16 Dec 2019 07:42:37 +0000 (08:42 +0100)
OES_geometry_shader introduced the concept of layered framebuffers.
Removing this assertion gets a bunch of CTS tests to pass. We will
also need layered images to implement layered rendering with geometry
shaders.

v2: fix typo in commit message (Alejandro)

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/gallium/drivers/v3d/v3d_resource.c

index 84f6b8c9122cc0ac7e82f61ac65c792d145ef564..cd8af3a7be8b6f2fe7aba4996e75bb374339e7eb 100644 (file)
@@ -992,8 +992,6 @@ v3d_create_surface(struct pipe_context *pctx,
         if (!surface)
                 return NULL;
 
-        assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer);
-
         struct pipe_surface *psurf = &surface->base;
         unsigned level = surf_tmpl->u.tex.level;
         struct v3d_resource_slice *slice = &rsc->slices[level];