projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
212f1ab
)
nouveau: expose HMM
author
Karol Herbst
<kherbst@redhat.com>
Tue, 5 Jun 2018 12:12:55 +0000
(14:12 +0200)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 14 Jul 2020 19:59:12 +0000
(19:59 +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/5906>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index c7a3354103a60d23fa9f482e721f0fac0b453cbe..2f0e92e6c2986a7cf3dc088f6368a54343dc1569 100644
(file)
--- 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: