OSDN Git Service
(root)
/
android-x86
/
external-drm_gralloc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6034201
)
nouveau: add support for Volta chipsets
author
Mauro Rossi
<issor.oruam@gmail.com>
Sat, 16 Jan 2021 16:26:12 +0000
(17:26 +0100)
committer
Mauro Rossi
<issor.oruam@gmail.com>
Sat, 16 Jan 2021 16:26:12 +0000
(17:26 +0100)
NV_VOLTA 0x140 chipsets handling is added in gralloc_drm_nouveau.c
gralloc_drm_nouveau.c
patch
|
blob
|
history
diff --git
a/gralloc_drm_nouveau.c
b/gralloc_drm_nouveau.c
index
5f0e192
..
4f57fe1
100644
(file)
--- a/
gralloc_drm_nouveau.c
+++ b/
gralloc_drm_nouveau.c
@@
-48,6
+48,7
@@
#define NV_KEPLER 0xe0
#define NV_MAXWELL 0x110
#define NV_PASCAL 0x130
+#define NV_VOLTA 0x140
#define NV50_TILE_HEIGHT(m) (4 << ((m) >> 4))
#define NVC0_TILE_HEIGHT(m) (8 << ((m) >> 4))
@@
-371,6
+372,9
@@
static int nouveau_init(struct nouveau_info *info)
case 0x130:
info->arch = NV_PASCAL;
break;
+ case 0x140:
+ info->arch = NV_VOLTA;
+ break;
default:
ALOGE("unknown nouveau chipset 0x%x", info->dev->chipset);
err = -EINVAL;