diff options
author | Mohamed Ahmed <mohamedahmedegypt2001@gmail.com> | 2024-05-09 22:43:52 +0200 |
---|---|---|
committer | Danilo Krummrich <dakr@redhat.com> | 2024-05-13 22:27:33 +0200 |
commit | 959314c438caf1b62d787f02d54a193efda38880 (patch) | |
tree | 045c8ffc0bfa5ae145c9c904bbc3f193a750fa1f /include | |
parent | drm/panthor: Call panthor_sched_post_reset() even if the reset failed (diff) | |
download | linux-959314c438caf1b62d787f02d54a193efda38880.tar.xz linux-959314c438caf1b62d787f02d54a193efda38880.zip |
drm/nouveau: use tile_mode and pte_kind for VM_BIND bo allocations
Allow PTE kind and tile mode on BO create with VM_BIND, and add a
GETPARAM to indicate this change. This is needed to support modifiers in
NVK and ensure correctness when dealing with the nouveau GL driver.
The userspace modifiers implementation this is for can be found here:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24795
Fixes: b88baab82871 ("drm/nouveau: implement new VM_BIND uAPI")
Signed-off-by: Mohamed Ahmed <mohamedahmedegypt2001@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240509204352.7597-1-mohamedahmedegypt2001@gmail.com
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/drm/nouveau_drm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/drm/nouveau_drm.h b/include/uapi/drm/nouveau_drm.h index 8ad8d1cd1566..dd87f8f30793 100644 --- a/include/uapi/drm/nouveau_drm.h +++ b/include/uapi/drm/nouveau_drm.h @@ -68,6 +68,13 @@ extern "C" { */ #define NOUVEAU_GETPARAM_VRAM_USED 19 +/* + * NOUVEAU_GETPARAM_HAS_VMA_TILEMODE + * + * Query whether tile mode and PTE kind are accepted with VM allocs or not. + */ +#define NOUVEAU_GETPARAM_HAS_VMA_TILEMODE 20 + struct drm_nouveau_getparam { __u64 param; __u64 value; |