intel: Use VG_CLEAR on the context destroy ioctl as well.
Otherwise pad appears uninitialized and valgrind grumbles. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>main
parent
6fa2b29d22
commit
a9412fa9de
|
@ -2936,6 +2936,8 @@ drm_intel_gem_context_destroy(drm_intel_context *ctx)
|
|||
if (ctx == NULL)
|
||||
return;
|
||||
|
||||
VG_CLEAR(destroy);
|
||||
|
||||
bufmgr_gem = (drm_intel_bufmgr_gem *)ctx->bufmgr;
|
||||
destroy.ctx_id = ctx->ctx_id;
|
||||
ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_CONTEXT_DESTROY,
|
||||
|
|
Loading…
Reference in New Issue