From 6476bcbc5005b76e1494a201f92f3c76bd8e9727 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 8 Feb 2014 09:51:14 -0800 Subject: [PATCH] svga: remove a couple unneeded assertions Reviewed-by: Thomas Hellstrom Cc: "10.1" --- src/gallium/drivers/svga/svga_sampler_view.c | 1 - src/gallium/drivers/svga/svga_screen_cache.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/gallium/drivers/svga/svga_sampler_view.c b/src/gallium/drivers/svga/svga_sampler_view.c index 2c846b29a44..55dc49f2d2c 100644 --- a/src/gallium/drivers/svga/svga_sampler_view.c +++ b/src/gallium/drivers/svga/svga_sampler_view.c @@ -150,7 +150,6 @@ svga_get_tex_sampler_view(struct pipe_context *pipe, &sv->key); if (!sv->handle) { - assert(0); sv->key.cachable = 0; sv->handle = tex->handle; debug_reference(&sv->reference, diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c index 09f4fe871dd..71dc72e7b8a 100644 --- a/src/gallium/drivers/svga/svga_screen_cache.c +++ b/src/gallium/drivers/svga/svga_screen_cache.c @@ -210,7 +210,6 @@ svga_screen_cache_add(struct svga_screen *svgascreen, assert(key->cachable); - assert(handle); if (!handle) return; -- 2.30.2