summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2015-08-11 14:24:55 -0700
committerSamuel Iglesias Gonsálvez <[email protected]>2016-05-10 11:25:08 +0200
commit2286a74e3b3a42c2dca051a9676735d07698af36 (patch)
treec8eb659cfe06d50034ba6318bc42f8eab026d08f /src/mesa
parentfccd15524f4c5b863e2e6570c66dbf1c15fee404 (diff)
i965/fs: fix dst width calculation in CSE
v2 (Sam): - Fix line width (Topi). Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_cse.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
index 15af2c1fabf..b9752453faa 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
@@ -187,7 +187,8 @@ static void
create_copy_instr(const fs_builder &bld, fs_inst *inst, fs_reg src, bool negate)
{
int written = inst->regs_written;
- int dst_width = inst->exec_size / 8;
+ int dst_width =
+ DIV_ROUND_UP(inst->dst.component_size(inst->exec_size), REG_SIZE);
fs_inst *copy;
if (written > dst_width) {