diff options
author | Jason Ekstrand <[email protected]> | 2015-06-18 13:49:22 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-06-30 16:13:51 -0700 |
commit | 83458e7c53cfc1f344280da6eb9a3b4e2dfdbc00 (patch) | |
tree | d6f4f995af20615bf3a2a1bbc572bf879d324eba /src/mesa/drivers/dri/i965/brw_fs_cse.cpp | |
parent | 9a0c883292cf48910a32634f7cc8b855e08c09d5 (diff) |
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 <[email protected]>
Acked-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_cse.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 2 |
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 29d1f2a6a57..29b46b96b8a 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; |