Mesa (master): v3d: Don't forget to initialize the buffer offset of a new winsys handle.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 21 22:56:44 UTC 2018
Module: Mesa
Branch: master
Commit: 69ae42ca4c1c3886d82a5eb22980b5f02cc0ad54
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=69ae42ca4c1c3886d82a5eb22980b5f02cc0ad54
Author: Eric Anholt <eric at anholt.net>
Date: Wed Jun 20 16:56:26 2018 -0700
v3d: Don't forget to initialize the buffer offset of a new winsys handle.
---
src/gallium/drivers/v3d/v3d_resource.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/v3d/v3d_resource.c b/src/gallium/drivers/v3d/v3d_resource.c
index b91ab30708..cd49c1af52 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
More information about the mesa-commit
mailing list