nouveau: expose HMM
authorKarol Herbst <kherbst@redhat.com>
Tue, 5 Jun 2018 12:12:55 +0000 (14:12 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 14:05:00 +0000 (14:05 +0000)
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/4580>

src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index c7a3354103a60d23fa9f482e721f0fac0b453cbe..2f0e92e6c2986a7cf3dc088f6368a54343dc1569 100644 (file)
@@ -323,6 +323,9 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
       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: