• C
    drm/i915: Only copy back the modified fields to userspace from execbuffer · 9aab8bff
    Chris Wilson 提交于
    We only want to modifiy a single field in the userspace view of the
    execbuffer command buffer, so explicitly change that rather than copy
    everything back again.
    
    This serves two purposes:
    
    1. The single fields are much cheaper to copy (constant size so the
    copy uses special case code) and much smaller than the whole array.
    
    2. We modify the array for internal use that need to be masked from
    the user.
    
    Note: We need this backported since without it the next bugfix will
    blow up when userspace recycles batchbuffers and relocations.
    Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: stable@vger.kernel.org
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    9aab8bff
i915_gem_execbuffer.c 37.6 KB