[Mesa-dev] [PATCH 11/19] svga: remove a couple unneeded assertions
Brian Paul
brianp at vmware.com
Thu Feb 13 17:21:03 PST 2014
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
---
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 2c846b2..55dc49f 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 09f4fe8..71dc72e 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;
--
1.7.10.4
More information about the mesa-dev
mailing list