From: Brian Paul Date: Sat, 8 Feb 2014 17:51:14 +0000 (-0800) Subject: svga: remove a couple unneeded assertions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6476bcbc5005b76e1494a201f92f3c76bd8e9727;p=mesa.git svga: remove a couple unneeded assertions Reviewed-by: Thomas Hellstrom Cc: "10.1" --- 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;