Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/drm Add includes, fix reference path.



details:   https://anonhg.NetBSD.org/src/rev/21b163dc2ad8
branches:  trunk
changeset: 1027864:21b163dc2ad8
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:59:34 2021 +0000

description:
Add includes, fix reference path.

diffstat:

 sys/external/bsd/drm2/drm/drm_gem_framebuffer_helper.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 29f714402750 -r 21b163dc2ad8 sys/external/bsd/drm2/drm/drm_gem_framebuffer_helper.c
--- a/sys/external/bsd/drm2/drm/drm_gem_framebuffer_helper.c    Sun Dec 19 00:59:25 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_gem_framebuffer_helper.c    Sun Dec 19 00:59:34 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_gem_framebuffer_helper.c,v 1.1 2021/12/19 00:25:53 riastradh Exp $ */
+/*     $NetBSD: drm_gem_framebuffer_helper.c,v 1.2 2021/12/19 00:59:34 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,13 +30,15 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_gem_framebuffer_helper.c,v 1.1 2021/12/19 00:25:53 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_gem_framebuffer_helper.c,v 1.2 2021/12/19 00:59:34 riastradh Exp $");
 
 #include <linux/err.h>
 #include <linux/slab.h>
 
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem.h>
+#include <drm/drm_gem_framebuffer_helper.h>
+#include <drm/drm_modeset_helper.h>
 
 #include <uapi/drm/drm_mode.h>
 
@@ -118,8 +120,8 @@
 
        /* Get the object for each plane.  */
        for (plane = 0; plane < fb->format->num_planes; plane++) {
-               unsigned vsub = (plane > 0 ? info->vsub : 1); /* XXX ? */
-               unsigned hsub = (plane > 0 ? info->hsub : 1); /* XXX ? */
+               unsigned vsub = (plane > 0 ? fb->format->vsub : 1); /* XXX ? */
+               unsigned hsub = (plane > 0 ? fb->format->hsub : 1); /* XXX ? */
                unsigned handle = mode_cmd->handles[plane];
                unsigned size;
 



Home | Main Index | Thread Index | Old Index