summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-06-18 13:49:22 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-06-30 16:13:51 -0700
commit83458e7c53cfc1f344280da6eb9a3b4e2dfdbc00 (patch)
treed6f4f995af20615bf3a2a1bbc572bf879d324eba /src/mesa/drivers/dri/i965/brw_fs_cse.cpp
parent9a0c883292cf48910a32634f7cc8b855e08c09d5 (diff)
downloadexternal_mesa3d-83458e7c53cfc1f344280da6eb9a3b4e2dfdbc00.zip
external_mesa3d-83458e7c53cfc1f344280da6eb9a3b4e2dfdbc00.tar.gz
external_mesa3d-83458e7c53cfc1f344280da6eb9a3b4e2dfdbc00.tar.bz2
i965/fs: Use exec_size instead of dst.width for computing component size
There are a variety of places where we use dst.width / 8 to compute the size of a single logical channel. Instead, we should be using exec_size. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Acked-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_cse.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_cse.cpp2
1 files changed, 1 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 29d1f2a..29b46b9 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
@@ -179,7 +179,7 @@ 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->dst.width / 8;
+ int dst_width = inst->exec_size / 8;
const fs_builder ubld = bld.group(inst->exec_size, inst->force_sechalf)
.exec_all(inst->force_writemask_all);
fs_inst *copy;