summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-10-24 11:35:51 -0700
committerJason Ekstrand <[email protected]>2014-10-27 13:35:57 -0700
commit3a5df8b61272fe78badb195c267c04a9e78d920f (patch)
treec93a73e7d6c119e30ad47f2e66d562f19656f02f
parentd175e7c16b4de1a4231b806dad3e400be9611121 (diff)
i965/fs: Use instruction execution sizes when generating scratch reads/writes
Reviewed-by: Kristian Høgsberg <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_generator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index c2010c036c9..c95beb6bc06 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -851,10 +851,10 @@ fs_generator::generate_scratch_write(fs_inst *inst, struct brw_reg src)
assert(inst->mlen != 0);
brw_MOV(p,
- retype(brw_message_reg(inst->base_mrf + 1), BRW_REGISTER_TYPE_UD),
+ brw_uvec_mrf(inst->exec_size, (inst->base_mrf + 1), 0),
retype(src, BRW_REGISTER_TYPE_UD));
brw_oword_block_write_scratch(p, brw_message_reg(inst->base_mrf),
- dispatch_width / 8, inst->offset);
+ inst->exec_size / 8, inst->offset);
}
void
@@ -863,13 +863,13 @@ fs_generator::generate_scratch_read(fs_inst *inst, struct brw_reg dst)
assert(inst->mlen != 0);
brw_oword_block_read_scratch(p, dst, brw_message_reg(inst->base_mrf),
- dispatch_width / 8, inst->offset);
+ inst->exec_size / 8, inst->offset);
}
void
fs_generator::generate_scratch_read_gen7(fs_inst *inst, struct brw_reg dst)
{
- gen7_block_read_scratch(p, dst, dispatch_width / 8, inst->offset);
+ gen7_block_read_scratch(p, dst, inst->exec_size / 8, inst->offset);
}
void