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/dist/drm/nouveau/include/nvif Let's no...



details:   https://anonhg.NetBSD.org/src/rev/ed3c3629176d
branches:  trunk
changeset: 366315:ed3c3629176d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:47:29 2018 +0000

description:
Let's not truncate registers to 8-bit when we read them, shall we?

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/object.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8fe3b0f73068 -r ed3c3629176d sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/object.h
--- a/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/object.h      Mon Aug 27 14:47:16 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/object.h      Mon Aug 27 14:47:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: object.h,v 1.5 2018/08/27 14:47:16 riastradh Exp $     */
+/*     $NetBSD: object.h,v 1.6 2018/08/27 14:47:29 riastradh Exp $     */
 
 #ifndef __NVIF_OBJECT_H__
 #define __NVIF_OBJECT_H__
@@ -60,7 +60,7 @@
        else
                return nvif_object_rd(obj, 1, offset);
 }
-static inline uint8_t
+static inline uint16_t
 nvif_rd16(struct nvif_object *obj, uint64_t offset)
 {
        if (obj->map.ptr)
@@ -69,7 +69,7 @@
        else
                return nvif_object_rd(obj, 2, offset);
 }
-static inline uint8_t
+static inline uint32_t
 nvif_rd32(struct nvif_object *obj, uint64_t offset)
 {
        if (obj->map.ptr)



Home | Main Index | Thread Index | Old Index