Commit fd3bd0a9 authored by Changbin Du's avatar Changbin Du Committed by Zhenyu Wang

drm/i915/gvt: use directly assignment for structure copying

Let c compiler handle the structure copying. The compiler will use
builtin function to handle that.
Signed-off-by: default avatarChangbin Du <changbin.du@intel.com>
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
parent 43c29e1f
...@@ -2477,7 +2477,7 @@ static int cmd_parser_exec(struct parser_exec_state *s) ...@@ -2477,7 +2477,7 @@ static int cmd_parser_exec(struct parser_exec_state *s)
t1 = get_cycles(); t1 = get_cycles();
memcpy(&s_before_advance_custom, s, sizeof(struct parser_exec_state)); s_before_advance_custom = *s;
if (info->handler) { if (info->handler) {
ret = info->handler(s); ret = info->handler(s);
......
...@@ -687,9 +687,7 @@ static int submit_context(struct intel_vgpu *vgpu, int ring_id, ...@@ -687,9 +687,7 @@ static int submit_context(struct intel_vgpu *vgpu, int ring_id,
} }
if (emulate_schedule_in) if (emulate_schedule_in)
memcpy(&workload->elsp_dwords, workload->elsp_dwords = vgpu->execlist[ring_id].elsp_dwords;
&vgpu->execlist[ring_id].elsp_dwords,
sizeof(workload->elsp_dwords));
gvt_dbg_el("workload %p ring id %d head %x tail %x start %x ctl %x\n", gvt_dbg_el("workload %p ring id %d head %x tail %x start %x ctl %x\n",
workload, ring_id, head, tail, start, ctl); workload, ring_id, head, tail, start, ctl);
......
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