mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
drm-shim/nouveau: Expose the 2D engine on NV50+
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26366>
This commit is contained in:
parent
3b0c34075c
commit
17bfaeac15
1 changed files with 11 additions and 0 deletions
|
|
@ -267,6 +267,17 @@ nouveau_ioctl_nvif(int fd, unsigned long request, void *arg)
|
|||
sclass->sclass.oclass[idx].maxver = -1;
|
||||
idx++;
|
||||
}
|
||||
/* 2d */
|
||||
if (device_info.chip_id >= 0x50) {
|
||||
if (device_info.chip_id <= 0xa0)
|
||||
sclass->sclass.oclass[idx].oclass = NV50_2D_CLASS;
|
||||
else
|
||||
sclass->sclass.oclass[idx].oclass = NVC0_2D_CLASS;
|
||||
|
||||
sclass->sclass.oclass[idx].minver = -1;
|
||||
sclass->sclass.oclass[idx].maxver = -1;
|
||||
idx++;
|
||||
}
|
||||
/* 3d */
|
||||
switch (device_info.chip_id & ~0xf) {
|
||||
case 0x170:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue