commit | 05362b075fdaff62189c9a8e2e01750f3466f07d | [log] [tgz] |
---|---|---|
author | Karol Herbst <kherbst@redhat.com> | Tue Jun 05 14:12:55 2018 +0200 |
committer | Marge Bot <eric+marge@anholt.net> | Tue Jul 14 19:59:12 2020 +0000 |
tree | e7760b13d8c7a863c6d12fcf3111a82912410f6a | |
parent | 212f1ab40ea5945919a92926fd9b2aa085fed661 [diff] |
nouveau: expose HMM v2: moved caps Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Pierre Moreau <dev@pmoreau.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5906>
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c index c7a3354..2f0e92e 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -323,6 +323,9 @@ return class_3d >= GM200_3D_CLASS; case PIPE_CAP_CONSERVATIVE_RASTER_PRE_SNAP_TRIANGLES: return class_3d >= GP100_3D_CLASS; + case PIPE_CAP_RESOURCE_FROM_USER_MEMORY_COMPUTE_ONLY: + case PIPE_CAP_SYSTEM_SVM: + return screen->has_svm ? 1 : 0; /* caps has to be turned on with nir */ case PIPE_CAP_GL_SPIRV: