mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 07:00:11 +01:00
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>
This commit is contained in:
parent
6fa2b29d22
commit
a9412fa9de
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue