]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/execlists: Move RPCS setup to context pin
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 25 Jan 2019 02:29:33 +0000 (02:29 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Jan 2019 10:18:04 +0000 (10:18 +0000)
commit8e525cb4a622148fbe30134ee3a1a34ad839a43a
treeae8fb44fe7d0caadd044be606978e9e8961c85e5
parentb3c316b0b869252481acc8d88138aae7619de582
drm/i915/execlists: Move RPCS setup to context pin

Configuring RPCS in context image just before pin is sufficient and will
come extra handy in one of the following patches.

v2:
 * Split image setup a bit differently. (Chris Wilson)

v3:
 * Update context image after reset as well - otherwise the application
   of pinned default state clears the RPCS.

v4:
 * Use local variable throughout the function. (Chris Wilson)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190125023005.1007-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c