diff options
author | Rob Clark <robclark@freedesktop.org> | 2014-03-19 10:11:13 -0400 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2014-03-19 10:12:18 -0400 |
commit | 1cb5fc706cf5913d9dee33c939f65a23ecea17a5 (patch) | |
tree | 60a49f96726da307c3c3dd758a81be920f1669b7 /freedreno/msm | |
parent | 230389a0d7b712f8ad0bab6edaacd8988e64d76b (diff) |
freedreno: zero out unused field
Since realloc() doesn't zero-init.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'freedreno/msm')
-rw-r--r-- | freedreno/msm/msm_ringbuffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/freedreno/msm/msm_ringbuffer.c b/freedreno/msm/msm_ringbuffer.c index c9c92561..e4d9561e 100644 --- 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; |