[PATCH 6/8] drm/bochs: phase 3: provide a custom ->atomic_commit implementation
John Hunter
zhjwpku at gmail.com
Thu Jul 16 05:20:39 PDT 2015
From: Zhao Junwang <zhjwpku at gmail.com>
This supports the asynchronous commits, required for page-flipping
Since it's virtual hw it's ok to commit async stuff right away, we
never have to wait for vblank.
Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Signed-off-by: Zhao Junwang <zhjwpku at gmail.com>
---
drivers/gpu/drm/bochs/bochs_mm.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bochs/bochs_mm.c b/drivers/gpu/drm/bochs/bochs_mm.c
index c1d819c..37ac2ca 100644
--- a/drivers/gpu/drm/bochs/bochs_mm.c
+++ b/drivers/gpu/drm/bochs/bochs_mm.c
@@ -545,8 +545,15 @@ bochs_user_framebuffer_create(struct drm_device *dev,
return &bochs_fb->base;
}
+static int bochs_atomic_commit(struct drm_device *dev,
+ struct drm_atomic_state *a,
+ bool async)
+{
+ return drm_atomic_helper_commit(dev, a, false);
+}
+
const struct drm_mode_config_funcs bochs_mode_funcs = {
.fb_create = bochs_user_framebuffer_create,
.atomic_check = drm_atomic_helper_check,
- .atomic_commit = drm_atomic_helper_commit,
+ .atomic_commit = bochs_atomic_commit,
};
--
1.7.10.4
More information about the dri-devel
mailing list