diff options
author | Jason Ekstrand <[email protected]> | 2016-03-11 11:24:46 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-03-11 11:31:03 -0800 |
commit | 132f079a8cbaeab442a7ea8b0f02b9f07dfdd310 (patch) | |
tree | 6614326b31d1b7bda58fe502311c2619a904edc6 /common.py | |
parent | 1f3d582cba4921fa638c1aa0d8e7861f91059547 (diff) |
anv/gem: Use C99-style struct initializers for DRM structs
This is more consistent with the way the rest of the driver works and
ensures that all structs we pass into the kernel are zero'd out except for
the fields we actually want to fill. We were previously doing then when
building with valgrind to keep valgrind from complaining. However, we need
to start doing this unconditionally as recent kernels have been getting
touchier about this. In particular, as of kernel commit b31e51360e88 from
Chris Wilson, context creation and destroy fail if the padding bits are not
set to 0.
Diffstat (limited to 'common.py')
0 files changed, 0 insertions, 0 deletions