mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
i965: remove unneeded src_reg copy in emit_shader_time_write
The variable is already of type src_reg. creating a new instance only to destroy it seems unnecessary. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
0325f68228
commit
bfc73ff10e
1 changed files with 1 additions and 1 deletions
|
|
@ -1788,7 +1788,7 @@ vec4_visitor::emit_shader_time_write(int shader_time_subindex, src_reg value)
|
|||
emit(MOV(offset, src_reg(index * SHADER_TIME_STRIDE)));
|
||||
|
||||
time.type = BRW_REGISTER_TYPE_UD;
|
||||
emit(MOV(time, src_reg(value)));
|
||||
emit(MOV(time, value));
|
||||
|
||||
vec4_instruction *inst =
|
||||
emit(SHADER_OPCODE_SHADER_TIME_ADD, dst_reg(), src_reg(dst));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue