v3d: Don't forget to initialize the buffer offset of a new winsys handle.
authorEric Anholt <eric@anholt.net>
Wed, 20 Jun 2018 23:56:26 +0000 (16:56 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 21 Jun 2018 22:56:18 +0000 (15:56 -0700)
src/gallium/drivers/v3d/v3d_resource.c

index b91ab30708ea9f0187b462ca760e405948f387ba..cd49c1af52bc7ba67fccef1bc1fa19e02cbf6bc0 100644 (file)
@@ -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