diff options
author | Michel Dänzer <[email protected]> | 2020-07-14 17:08:10 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2020-07-14 17:08:10 +0200 |
commit | 89caa485f15927ebc1f666b57732b55516288c1b (patch) | |
tree | 20961aac079caccd483c70e20da206c91323f834 /src/gallium/drivers/nouveau/nvc0 | |
parent | 460300ed5927d1956d1258ba796ef642db86e540 (diff) |
Revert https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4580
It broke the CI pipeline on master:
https://gitlab.freedesktop.org/mesa/mesa/-/jobs/3604314
https://gitlab.freedesktop.org/mesa/mesa/-/jobs/3604315
Revert for now, to allow other MRs to be merged.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5905>
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_resource.c | 14 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 3 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c b/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c index 622cfd4b9e1..d73ecf71624 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c @@ -98,19 +98,6 @@ nvc0_surface_create(struct pipe_context *pipe, return nvc0_miptree_surface_new(pipe, pres, templ); } -static struct pipe_resource * -nvc0_resource_from_user_memory(struct pipe_screen *pipe, - const struct pipe_resource *templ, - void *user_memory) -{ - struct nouveau_screen *screen = nouveau_screen(pipe); - - assert(screen->has_svm); - assert(templ->target == PIPE_BUFFER); - - return nouveau_buffer_create_from_user(pipe, templ, user_memory); -} - void nvc0_init_resource_functions(struct pipe_context *pcontext) { @@ -133,5 +120,4 @@ nvc0_screen_init_resource_functions(struct pipe_screen *pscreen) pscreen->resource_from_handle = nvc0_resource_from_handle; pscreen->resource_get_handle = u_resource_get_handle_vtbl; pscreen->resource_destroy = u_resource_destroy_vtbl; - pscreen->resource_from_user_memory = nvc0_resource_from_user_memory; } diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c index 2f0e92e6c29..c7a3354103a 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c @@ -323,9 +323,6 @@ 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: |