summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2015-06-30 15:15:44 +0300
committerJason Ekstrand <jason.ekstrand@intel.com>2015-07-01 09:24:46 -0700
commitdabec9c293ee29335f5a6d5d1d3c2b7a715605c1 (patch)
tree8d7c33caf84e0289dad73af1bf7b03c3bde22d90 /src/mesa/drivers/dri/i965/brw_fs_cse.cpp
parent8276ba260e5500664b8d8748f3224f73ef221887 (diff)
downloadexternal_mesa3d-dabec9c293ee29335f5a6d5d1d3c2b7a715605c1.zip
external_mesa3d-dabec9c293ee29335f5a6d5d1d3c2b7a715605c1.tar.gz
external_mesa3d-dabec9c293ee29335f5a6d5d1d3c2b7a715605c1.tar.bz2
i965/fs: Relax fs_builder channel group assertion when force_writemask_all is on.
This assertion was meant to catch code inadvertently escaping the control flow jail determined by the group of channel enable signals selected by some caller, however it seems useful to be able to increase the default execution size as long as force_writemask_all is enabled, because force_writemask_all is an explicit indication that there is no longer a one-to-one correspondence between channels and SIMD components so the restriction doesn't apply. In addition reorder the calls to fs_builder::group and ::exec_all in a couple of places to make sure that we don't temporarily break this invariant in the future for instructions with exec_size higher than the dispatch width. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_cse.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_cse.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
index 291feb3..e33fe6a 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
@@ -180,8 +180,8 @@ 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;
- const fs_builder ubld = bld.group(inst->exec_size, inst->force_sechalf)
- .exec_all(inst->force_writemask_all);
+ const fs_builder ubld = bld.exec_all(inst->force_writemask_all)
+ .group(inst->exec_size, inst->force_sechalf);
fs_inst *copy;
if (written > dst_width) {