path: root/include/uapi/drm/i915_drm.h
diff options
authorTvrtko Ursulin <>2016-01-15 15:12:50 +0000
committerTvrtko Ursulin <>2016-01-21 10:55:44 +0000
commitde1add360522c876c25ef2bbbbab1c94bdb509ab (patch)
tree03f880cd80a81a438eea1002fa58bae2e0cc2e1c /include/uapi/drm/i915_drm.h
parent7c17d377374ddbcfb7873366559fc4ed8b296e11 (diff)
drm/i915: Decouple execbuf uAPI from internal implementation
At the moment execbuf ring selection is fully coupled to internal ring ids which is not a good thing on its own. This dependency is also spread between two source files and not spelled out at either side which makes it hidden and fragile. This patch decouples this dependency by introducing an explicit translation table of execbuf uAPI to ring id close to the only call site (i915_gem_do_execbuffer). This way we are free to change driver internal implementation details without breaking userspace. All state relating to the uAPI is now contained in, or next to, i915_gem_do_execbuffer. As a side benefit, this patch decreases the compiled size of i915_gem_do_execbuffer. v2: Extract ring selection into eb_select_ring. (Chris Wilson) Signed-off-by: Tvrtko Ursulin <> Cc: Daniel Vetter <> Cc: Chris Wilson <> Reviewed-by: Chris Wilson <> Acked-by: Daniel Vetter <> Link:
Diffstat (limited to 'include/uapi/drm/i915_drm.h')
0 files changed, 0 insertions, 0 deletions