diff options
author | Ping Gao <ping.a.gao@intel.com> | 2017-06-29 12:22:42 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-08-10 10:26:06 +0800 |
commit | 89ea20b930cb7372095645acae8928a75f7d5be5 (patch) | |
tree | 460224a4395d8edb4b256c27b4c79cd566252918 /drivers/gpu/drm/i915/gvt/cmd_parser.h | |
parent | 4671ea204179dc705d4b0c31045e6acdfd6e59e8 (diff) | |
download | linux-89ea20b930cb7372095645acae8928a75f7d5be5.tar.gz linux-89ea20b930cb7372095645acae8928a75f7d5be5.tar.bz2 linux-89ea20b930cb7372095645acae8928a75f7d5be5.zip |
drm/i915/gvt: Factor out scan and shadow from workload dispatch
To perform the workload scan and shadow in ELSP writing stage for
performance consideration, the workload scan and shadow stuffs
should be factored out from dispatch_workload().
v2:Put context pin before i915_add_request;
Refine the comments;
Rename some APIs;
v3:workload->status should set only when error happens.
v4:i915_add_request is must to have after i915_gem_request_alloc.
Signed-off-by: Ping Gao <ping.a.gao@intel.com>
Reviewed-by: Zhi Wang <zhi.a.wang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/cmd_parser.h')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/cmd_parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.h b/drivers/gpu/drm/i915/gvt/cmd_parser.h index bed33514103c..286703643002 100644 --- a/drivers/gpu/drm/i915/gvt/cmd_parser.h +++ b/drivers/gpu/drm/i915/gvt/cmd_parser.h @@ -42,7 +42,7 @@ void intel_gvt_clean_cmd_parser(struct intel_gvt *gvt); int intel_gvt_init_cmd_parser(struct intel_gvt *gvt); -int intel_gvt_scan_and_shadow_workload(struct intel_vgpu_workload *workload); +int intel_gvt_scan_and_shadow_ringbuffer(struct intel_vgpu_workload *workload); int intel_gvt_scan_and_shadow_wa_ctx(struct intel_shadow_wa_ctx *wa_ctx); |