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/radeon struct radeon_framebuffer is no...



details:   https://anonhg.NetBSD.org/src/rev/bcf93560f09d
branches:  trunk
changeset: 1028074:bcf93560f09d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:47:41 2021 +0000

description:
struct radeon_framebuffer is no more.

diffstat:

 sys/external/bsd/drm2/radeon/radeondrmkmsfb.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r f7e31a3a70e5 -r bcf93560f09d sys/external/bsd/drm2/radeon/radeondrmkmsfb.c
--- a/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c     Sun Dec 19 01:47:31 2021 +0000
+++ b/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c     Sun Dec 19 01:47:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeondrmkmsfb.c,v 1.13 2019/11/06 07:31:20 mrg Exp $  */
+/*     $NetBSD: radeondrmkmsfb.c,v 1.14 2021/12/19 01:47:41 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeondrmkmsfb.c,v 1.13 2019/11/06 07:31:20 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeondrmkmsfb.c,v 1.14 2021/12/19 01:47:41 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/device.h>
@@ -182,9 +182,7 @@
            struct radeonfb_softc, sc_drmfb);
        struct drm_fb_helper *const helper = sc->sc_rfa.rfa_fb_helper;
        struct drm_framebuffer *const fb = helper->fb;
-       struct radeon_framebuffer *const rfb = container_of(fb,
-           struct radeon_framebuffer, base);
-       struct drm_gem_object *const gobj = rfb->obj;
+       struct drm_gem_object *const gobj = fb->obj[0];
        struct radeon_bo *const rbo = gem_to_radeon_bo(gobj);
        int flags = 0;
 



Home | Main Index | Thread Index | Old Index