projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6e89fa
)
svga: remove assertions in svga_surface cast wrappers
author
Brian Paul
<brianp@vmware.com>
Thu, 25 Aug 2016 23:43:40 +0000
(17:43 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 26 Aug 2016 20:20:19 +0000
(14:20 -0600)
We don't do this for other cast wrappers. And this will simplify some
code at call sites.
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/gallium/drivers/svga/svga_surface.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_surface.h
b/src/gallium/drivers/svga/svga_surface.h
index 0e5794b0b3806e0b88ebbc2554a57c5b447060c3..c166791e1e7b240fa6cc4dec6329e52c5e8e613d 100644
(file)
--- a/
src/gallium/drivers/svga/svga_surface.h
+++ b/
src/gallium/drivers/svga/svga_surface.h
@@
-93,7
+93,6
@@
svga_texture_copy_handle(struct svga_context *svga,
static inline struct svga_surface *
svga_surface(struct pipe_surface *surface)
{
- assert(surface);
return (struct svga_surface *)surface;
}
@@
-101,7
+100,6
@@
svga_surface(struct pipe_surface *surface)
static inline const struct svga_surface *
svga_surface_const(const struct pipe_surface *surface)
{
- assert(surface);
return (const struct svga_surface *)surface;
}