aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2018-06-05 14:12:55 +0200
committerMarge Bot <[email protected]>2020-07-14 14:05:00 +0000
commit460300ed5927d1956d1258ba796ef642db86e540 (patch)
treea6c7bc1c52554a5749396d396c88235162465c98
parentefa847dbc9dca659efc33a8b15575d3aca3d8d13 (diff)
nouveau: expose HMM
v2: moved caps Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Pierre Moreau <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4580>
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index c7a3354103a..2f0e92e6c29 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -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: