Re: [PATCH v4 3/4] drm/vmwgfx: Fix handling of dumb buffers

2024-07-19 Thread Ian Forbes
On Thu, Jul 18, 2024 at 11:22 AM Zack Rusin wrote: > +bool vmw_user_object_is_mapped(struct vmw_user_object *uo) > +{ > + struct vmw_bo *bo; > + > + if (!uo || vmw_user_object_is_null(uo)) > + return false; > + > + bo = vmw_user_object_buffer(uo); > + WARN_ON

[PATCH v4 3/4] drm/vmwgfx: Fix handling of dumb buffers

2024-07-18 Thread Zack Rusin
Dumb buffers can be used in kms but also through prime with gallium's resource_from_handle. In the second case the dumb buffers can be rendered by the GPU where with the regular DRM kms interfaces they are mapped and written to by the CPU. Because the same buffer can be written to by the GPU and CP