diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-11-24 10:10:04 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-12-22 13:22:14 +1000 |
commit | f6b1b5b7c9cf6667d169bad3b33a73e4fe2bc14c (patch) | |
tree | cb501fa1f27a6881053abe68baac1dcdf45b46f0 /util_math.h | |
parent | c00e1a92a24cb84008d90ce67218bb593396fde5 (diff) | |
download | drm-f6b1b5b7c9cf6667d169bad3b33a73e4fe2bc14c.tar.gz |
nouveau: add interfaces to query information about supported classes
This will expose functionality supported by newer kernel interfaces.
Current userspace uses the chipset to determine which classes are likely
exposed, which generally works pretty well, but isn't as flexible as it
could be.
Unfortunately, the G98:GF100 video code in Mesa is still relying on the
kernel exposing incorrect vdec classes on some chipsets. The ABI16
kernel interfaces have a workaround for this in place, but that will no
longer be available once libdrm supports NVIF.
To prevent a regression when NVIF support is added, if there's no kernel
support for NVIF, libdrm will magic up a class list containing correct
vdec classes anyway instead of failing with -ENODEV.
v2.
- add description of abi16/vdec workaround
- add description of sclass/mclass
- leave client-provided pointer unmodified on abi16_sclass() failure
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'util_math.h')
0 files changed, 0 insertions, 0 deletions