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/7efbb1bb43b1
branches:  trunk
changeset: 835396:7efbb1bb43b1
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 e652218138ef -r 7efbb1bb43b1 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