v3d: Don't forget to initialize the buffer offset of a new winsys handle.

This commit is contained in:
Eric Anholt 2018-06-20 16:56:26 -07:00
parent ee9a6a13fb
commit 69ae42ca4c
1 changed files with 1 additions and 0 deletions

View 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