projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5917761
)
ac: Clear meminfo to avoid valgrind warning.
author
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Thu, 14 Jun 2018 22:01:43 +0000
(
00:01
+0200)
committer
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Sat, 16 Jun 2018 17:03:47 +0000
(19:03 +0200)
Somehow valgrind misses that the value is initialized by the ioctl.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_gpu_info.c
patch
|
blob
|
history
diff --git
a/src/amd/common/ac_gpu_info.c
b/src/amd/common/ac_gpu_info.c
index e908cc6fa965320ce8a5ad526825558ad77f4ef3..e885c0538e961a3a46e733eaddf8fc899e4400d2 100644
(file)
--- a/
src/amd/common/ac_gpu_info.c
+++ b/
src/amd/common/ac_gpu_info.c
@@
-235,7
+235,7
@@
bool ac_query_gpu_info(int fd, amdgpu_device_handle dev,
}
if (info->drm_minor >= 9) {
- struct drm_amdgpu_memory_info meminfo;
+ struct drm_amdgpu_memory_info meminfo
= {}
;
r = amdgpu_query_info(dev, AMDGPU_INFO_MEMORY, sizeof(meminfo), &meminfo);
if (r) {