]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Enable synchronous flip on handling MI_DISPLAY_FLIP
authorColin Xu <colin.xu@intel.com>
Mon, 25 Mar 2019 01:52:16 +0000 (09:52 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 29 Mar 2019 03:09:57 +0000 (11:09 +0800)
commit86ecee825f6e80b5261d9c9a17571a636df42c55
tree4fbe822cd60173d9fdfbb9ccb1240c9dc387701e
parent61cffd558242f5ea4b4960398f465d56e722ba62
drm/i915/gvt: Enable synchronous flip on handling MI_DISPLAY_FLIP

According to Intel GFX PRM on 01.org, the MI_DISPLAY_FLIP command can
either request display plane flip synchronously or asynchronously.
In synchronous flip, flip will be hold until next vsync, which
is not implemented yet in GVT. In asynchronous flip, flip will happen
immediately, which is current implementation.

The patch enables the sync flip on handling MI_DISPLAY_FLIP,
and increment flip count correctly by only increment on primary plane.

v2:
Use bit operation definition for flip mode. (zhenyu)

Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Colin Xu <colin.xu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c