From: Daniel van der Wath <[email protected]>
The kernel side equivalent of struct SVGA3dSize (struct drm_vmw_size) has an
extra padding word that SVGA3dSize lacks. This was causing data to be written
past the end of "size" in vmw_drm_surface_from_handle(), corrupting other data
and in this case leading to Weston being unable to render anything on screen.
---
src/gallium/drivers/svga/include/svga3d_types.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/svga/include/svga3d_types.h
b/src/gallium/drivers/svga/include/svga3d_types.h
index fc4a6b9..3ce6814 100644
--- a/src/gallium/drivers/svga/include/svga3d_types.h
+++ b/src/gallium/drivers/svga/include/svga3d_types.h
@@ -1280,6 +1280,7 @@ struct {
uint32 width;
uint32 height;
uint32 depth;
+ uint32 pad64;
}
#include "vmware_pack_end.h"
SVGA3dSize;
--
1.7.11.7
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev