projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b287c3
)
nvc0: Fix uninitialized width/height/depth warning.
author
Joshua Ashton
<joshua@froggi.es>
Tue, 21 Sep 2021 10:10:05 +0000
(11:10 +0100)
committer
Adam Jackson
<ajax@nwnk.net>
Thu, 4 Nov 2021 15:31:09 +0000
(15:31 +0000)
This can happen if view->resource is false.
Fixes a warning in GCC 9+ that's been bugging me for a very long time when building Mesa.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12955>
src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
index
a9b475e
..
f7c3d5f
100644
(file)
--- a/
src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
+++ b/
src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
@@
-1136,7
+1136,7
@@
nvc0_validate_suf(struct nvc0_context *nvc0, int s)
for (int i = 0; i < NVC0_MAX_IMAGES; ++i) {
struct pipe_image_view *view = &nvc0->images[s][i];
- int width
, height, depth
;
+ int width
= 0, height = 0, depth = 0
;
uint64_t address = 0;
if (s == 5)