-
- Downloads
drm/vmwgfx: Reemit context bindings when necessary v2
When a context is first referenced in the command stream, make sure that all scrubbed (as a result of eviction) bindings are re-emitted. Also make sure that all bound resources are put on the resource validate list. This is needed for legacy emulation, since legacy user-space drivers will typically not re-emit shader bindings. It also removes the requirement for user-space drivers to re-emit render-target- and texture bindings. Makes suspend and hibernate now also work with legacy user-space drivers on guest-backed devices. v2: Don't rebind on legacy devices. Signed-off-by:Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by:
Jakob Bornecrantz <jakob@vmware.com>
Showing
- drivers/gpu/drm/vmwgfx/vmwgfx_context.c 123 additions, 21 deletionsdrivers/gpu/drm/vmwgfx/vmwgfx_context.c
- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 6 additions, 0 deletionsdrivers/gpu/drm/vmwgfx/vmwgfx_drv.h
- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 81 additions, 4 deletionsdrivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
- drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 10 additions, 1 deletiondrivers/gpu/drm/vmwgfx/vmwgfx_resource.c
- drivers/gpu/drm/vmwgfx/vmwgfx_shader.c 1 addition, 1 deletiondrivers/gpu/drm/vmwgfx/vmwgfx_shader.c
- drivers/gpu/drm/vmwgfx/vmwgfx_surface.c 1 addition, 1 deletiondrivers/gpu/drm/vmwgfx/vmwgfx_surface.c
Loading
Please register or sign in to comment