projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230389a
)
freedreno: zero out unused field
author
Rob Clark
<robclark@freedesktop.org>
Wed, 19 Mar 2014 14:11:13 +0000
(10:11 -0400)
committer
Rob Clark
<robclark@freedesktop.org>
Wed, 19 Mar 2014 14:12:18 +0000
(10:12 -0400)
Since realloc() doesn't zero-init.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
freedreno/msm/msm_ringbuffer.c
patch
|
blob
|
history
diff --git
a/freedreno/msm/msm_ringbuffer.c
b/freedreno/msm/msm_ringbuffer.c
index c9c92561734eff69d17b8b348db4842d21c68c36..e4d9561e0917bb7fa5fef656422c55caad38056f 100644
(file)
--- a/
freedreno/msm/msm_ringbuffer.c
+++ b/
freedreno/msm/msm_ringbuffer.c
@@
-143,6
+143,7
@@
static struct drm_msm_gem_submit_cmd * get_cmd(struct fd_ringbuffer *ring,
cmd->submit_idx = bo2idx(ring, target_bo, FD_RELOC_READ);
cmd->submit_offset = submit_offset;
cmd->size = size;
+ cmd->pad = 0;
}
return cmd;