diff options
author | Emil Velikov <[email protected]> | 2015-10-07 12:38:12 +0100 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-10-28 02:28:38 -0700 |
commit | bfc73ff10eafad59b6ae9ca3991f9f1a3700b3a1 (patch) | |
tree | 6bf5d0161c14a400b7e1a6f36ef62e1e0dfd53a0 /src | |
parent | 0325f6822899fa58963094e3bb6433e3c6d5b374 (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp index 71a5a4403f4..f87b86fbd3e 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp @@ -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)); |