summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2017-06-04 21:06:30 +0200
committerAndres Gomez <agomez@igalia.com>2017-06-28 20:15:03 +0300
commite8368dbd6b3a30ad40fb9d7990b4c45936d5c959 (patch)
treed2b06aee92ff091690ac262c6e32c65080cf5654
parentc0f7d34247a6237fef1eeae02977a2cfa0e2d334 (diff)
etnaviv: remove bogus assert
etna_resource_copy_region handles resources with multiple samples by falling back to the software path. There is no need to kill the application there. Fixes: c9e8b49b ("etnaviv: gallium driver for Vivante GPUs") Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Lucas Stach <dev@lynxeye.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> (cherry picked from commit 6633880e7e0557b3dc4e89e62857bd7b548c93fd)
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_clear_blit.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c b/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
index ae60454571e..c3b755e3da8 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
@@ -287,8 +287,6 @@ etna_resource_copy_region(struct pipe_context *pctx, struct pipe_resource *dst,
/* The resource must be of the same format. */
assert(src->format == dst->format);
- /* Resources with nr_samples > 1 are not allowed. */
- assert(src->nr_samples <= 1 && dst->nr_samples <= 1);
/* XXX we can use the RS as a literal copy engine here
* the only complexity is tiling; the size of the boxes needs to be aligned