Commit cc1e3b79 authored by Thomas Hellstrom's avatar Thomas Hellstrom

drm/vmwgfx: Reduce the size of buffer object relocations

With the new allocator this leads to less consumed memory for each
user-space command submission
Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: default avatarDeepak Rawat <drawat@vmware.com>
parent fc18afcf
...@@ -39,15 +39,17 @@ ...@@ -39,15 +39,17 @@
* struct vmw_relocation - Buffer object relocation * struct vmw_relocation - Buffer object relocation
* *
* @head: List head for the command submission context's relocation list * @head: List head for the command submission context's relocation list
* @vbo: Non ref-counted pointer to buffer object
* @mob_loc: Pointer to location for mob id to be modified * @mob_loc: Pointer to location for mob id to be modified
* @location: Pointer to location for guest pointer to be modified * @location: Pointer to location for guest pointer to be modified
* @vbo: Non ref-counted pointer to buffer object
*/ */
struct vmw_relocation { struct vmw_relocation {
struct list_head head; struct list_head head;
struct vmw_buffer_object *vbo;
union {
SVGAMobId *mob_loc; SVGAMobId *mob_loc;
SVGAGuestPtr *location; SVGAGuestPtr *location;
struct vmw_buffer_object *vbo; };
}; };
/** /**
...@@ -1167,7 +1169,6 @@ static int vmw_translate_mob_ptr(struct vmw_private *dev_priv, ...@@ -1167,7 +1169,6 @@ static int vmw_translate_mob_ptr(struct vmw_private *dev_priv,
goto out_no_reloc; goto out_no_reloc;
reloc->mob_loc = id; reloc->mob_loc = id;
reloc->location = NULL;
reloc->vbo = vmw_bo; reloc->vbo = vmw_bo;
ret = vmw_validation_add_bo(sw_context->ctx, vmw_bo, true, false); ret = vmw_validation_add_bo(sw_context->ctx, vmw_bo, true, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment