From 56ba6f42e22bd55d8f95c0cfc6e95357e49aa4d1 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Tue, 29 Oct 2019 09:32:05 +0100 Subject: [PATCH] v3d: remove obsolete assertion MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/drivers/v3d/v3d_resource.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/drivers/v3d/v3d_resource.c b/src/gallium/drivers/v3d/v3d_resource.c index 84f6b8c9122..cd8af3a7be8 100644 --- a/src/gallium/drivers/v3d/v3d_resource.c +++ b/src/gallium/drivers/v3d/v3d_resource.c @@ -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]; -- 2.30.2