aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/fb_decoder.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2020-12-08 12:29:08 +0200
committerZhenyu Wang <zhenyuw@linux.intel.com>2020-12-22 11:39:05 +0800
commit265f6c0fd2c81cb101be10dd86e97554e91b30c7 (patch)
tree3f25beb742cb0efbc87bfd878865d8b155c04859 /drivers/gpu/drm/i915/gvt/fb_decoder.h
parentdrm/i915/gvt: make execlist.h self-contained (diff)
downloadlinux-dev-265f6c0fd2c81cb101be10dd86e97554e91b30c7.tar.xz
linux-dev-265f6c0fd2c81cb101be10dd86e97554e91b30c7.zip
drm/i915/gvt: make fb_decoder.h self-contained
Add necessary #includes and forward declarations to make the header compile on its own. While at it, also remove a useless forward declaration. Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/46c2acf80f1d214182a96a97fa6322ab89a3de05.1607422863.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/fb_decoder.h')
-rw-r--r--drivers/gpu/drm/i915/gvt/fb_decoder.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gvt/fb_decoder.h b/drivers/gpu/drm/i915/gvt/fb_decoder.h
index 67b6ede9e707..0daa3931aef7 100644
--- a/drivers/gpu/drm/i915/gvt/fb_decoder.h
+++ b/drivers/gpu/drm/i915/gvt/fb_decoder.h
@@ -38,6 +38,10 @@
#include <linux/types.h>
+#include "display/intel_display.h"
+
+struct intel_vgpu;
+
#define _PLANE_CTL_FORMAT_SHIFT 24
#define _PLANE_CTL_TILED_SHIFT 10
#define _PIPE_V_SRCSZ_SHIFT 0
@@ -98,8 +102,6 @@ enum DDI_PORT {
DDI_PORT_E = 4
};
-struct intel_gvt;
-
/* color space conversion and gamma correction are not included */
struct intel_vgpu_primary_plane_format {
u8 enabled; /* plane is enabled */