From: Eric Anholt Date: Wed, 20 Jun 2018 23:56:26 +0000 (-0700) Subject: v3d: Don't forget to initialize the buffer offset of a new winsys handle. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69ae42ca4c1c3886d82a5eb22980b5f02cc0ad54;p=mesa.git v3d: Don't forget to initialize the buffer offset of a new winsys handle. --- diff --git a/src/gallium/drivers/v3d/v3d_resource.c b/src/gallium/drivers/v3d/v3d_resource.c index b91ab30708e..cd49c1af52b 100644 --- a/src/gallium/drivers/v3d/v3d_resource.c +++ b/src/gallium/drivers/v3d/v3d_resource.c @@ -316,6 +316,7 @@ v3d_resource_get_handle(struct pipe_screen *pscreen, struct v3d_bo *bo = rsc->bo; whandle->stride = rsc->slices[0].stride; + whandle->offset = 0; /* If we're passing some reference to our BO out to some other part of * the system, then we can't do any optimizations about only us being