The 'size' field of struct intel_vgpu_fb_info is
kept in pages, not in bytes.

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

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 */
-- 
2.20.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to