Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
---
 drivers/gpu/drm/bochs/bochs_mm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/bochs/bochs_mm.c b/drivers/gpu/drm/bochs/bochs_mm.c
index 857755ac2d..781d35bdff 100644
--- a/drivers/gpu/drm/bochs/bochs_mm.c
+++ b/drivers/gpu/drm/bochs/bochs_mm.c
@@ -508,7 +508,7 @@ bochs_user_framebuffer_create(struct drm_device *dev,
               (mode_cmd->pixel_format >> 16) & 0xff,
               (mode_cmd->pixel_format >> 24) & 0xff);
 
-       if (mode_cmd->pixel_format != DRM_FORMAT_XRGB8888)
+       if (mode_cmd->pixel_format != DRM_FORMAT_CPU_XRGB8888)
                return ERR_PTR(-ENOENT);
 
        obj = drm_gem_object_lookup(filp, mode_cmd->handles[0]);
-- 
2.9.3

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

Reply via email to