projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9972fb
)
nvc0: Fix compiler warning about unused var that gets asserted.
author
Eric Anholt
<eric@anholt.net>
Tue, 25 Aug 2020 18:24:43 +0000
(11:24 -0700)
committer
Marge Bot
<eric+marge@anholt.net>
Fri, 28 Aug 2020 22:45:08 +0000
(22:45 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6462>
src/gallium/drivers/nouveau/nvc0/nvc0_resource.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c
b/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c
index 622cfd4b9e1539c104389e97f5dd4b222d3321eb..67e5adabd162b2937e216825e37918667a636350 100644
(file)
--- a/
src/gallium/drivers/nouveau/nvc0/nvc0_resource.c
+++ b/
src/gallium/drivers/nouveau/nvc0/nvc0_resource.c
@@
-103,7
+103,7
@@
nvc0_resource_from_user_memory(struct pipe_screen *pipe,
const struct pipe_resource *templ,
void *user_memory)
{
- struct nouveau_screen *screen = nouveau_screen(pipe);
+
ASSERTED
struct nouveau_screen *screen = nouveau_screen(pipe);
assert(screen->has_svm);
assert(templ->target == PIPE_BUFFER);