diff mbox series

[2/3] i915/gvt/dmabuf: fix comment about 'size' field

Message ID 20190414144413.9708-3-uril@redhat.com (mailing list archive)
State New, archived
Headers show
Series i915/gvt/dmabuf: some plane 'size' fixes | expand

Commit Message

Uri Lublin April 14, 2019, 2:44 p.m. UTC
The 'size' field of struct intel_vgpu_fb_info is
kept in pages, not in bytes.

Signed-off-by: Uri Lublin <uril@redhat.com>
Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
---
 drivers/gpu/drm/i915/gvt/dmabuf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/gvt/dmabuf.h b/drivers/gpu/drm/i915/gvt/dmabuf.h
index 5f8f03fb1d1b..915caa065db8 100644
--- a/drivers/gpu/drm/i915/gvt/dmabuf.h
+++ b/drivers/gpu/drm/i915/gvt/dmabuf.h
@@ -40,7 +40,7 @@  struct intel_vgpu_fb_info {
 	__u32 width;	/* width of plane */
 	__u32 height;	/* height of plane */
 	__u32 stride;	/* stride of plane */
-	__u32 size;	/* size of plane in bytes, align on page */
+	__u32 size;	/* size of plane in pages */
 	__u32 x_pos;	/* horizontal position of cursor plane */
 	__u32 y_pos;	/* vertical position of cursor plane */
 	__u32 x_hot;    /* horizontal position of cursor hotspot */