diff options
author | Samuel Iglesias Gonsálvez <[email protected]> | 2017-02-13 12:09:53 +0100 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2017-03-01 06:50:35 +0100 |
commit | 0dddad5b1bb3b05190074a71d274c04c0b5ea700 (patch) | |
tree | 55eb5c1ee02bfaf6c3ce886718f6ae1d5b841535 /src | |
parent | d8122128bc6bd291ff0abcb7f2e52d9cdc631527 (diff) |
i965/fs: emit MOV_INDIRECT with the source with the right register type
This was hiding bugs as it retyped the source to destination's type.
Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]>
Cc: "17.0" <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index 26ffbb169d2..65c75e63d27 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp @@ -428,7 +428,7 @@ fs_generator::generate_mov_indirect(fs_inst *inst, brw_ADD(p, addr, indirect_byte_offset, brw_imm_uw(imm_byte_offset)); struct brw_reg ind_src = brw_VxH_indirect(0, 0); - brw_inst *mov = brw_MOV(p, dst, retype(ind_src, dst.type)); + brw_inst *mov = brw_MOV(p, dst, retype(ind_src, reg.type)); if (devinfo->gen == 6 && dst.file == BRW_MESSAGE_REGISTER_FILE && !inst->get_next()->is_tail_sentinel() && |