drm/i915/gvt: Add framebuffer decoder support
authorTina Zhang <tina.zhang@intel.com>
Thu, 23 Nov 2017 08:26:32 +0000 (16:26 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 4 Dec 2017 03:24:33 +0000 (11:24 +0800)
commit9f31d1063b434c2d54317461d78285b08538c01a
tree33d840a95e3ac7b2db6e5633e43d604ac9a588b9
parentb851adeac0858c7d257b32eee2142b1519d45ccf
drm/i915/gvt: Add framebuffer decoder support

This patch is to introduce the framebuffer decoder which can decode guest
OS's framebuffer information, including primary, cursor and sprite plane.

v16:
- rebase to 4.14.0-rc6.

v14:
- refine pixel format table. (Zhenyu)

v9:
- move drm format change to a separate patch. (Xiaoguang)

v8:
- fix a bug in decoding primary plane. (Tina)

v7:
- refine framebuffer decoder code. (Zhenyu)

Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/Makefile
drivers/gpu/drm/i915/gvt/display.c
drivers/gpu/drm/i915/gvt/display.h
drivers/gpu/drm/i915/gvt/fb_decoder.c [new file with mode: 0644]
drivers/gpu/drm/i915/gvt/fb_decoder.h [new file with mode: 0644]
drivers/gpu/drm/i915/gvt/gvt.h