diff options
author | Francisco Jerez <currojerez@riseup.net> | 2016-05-15 16:52:49 -0700 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2016-05-23 14:05:20 -0700 |
commit | 70023c40c6094208cc869ef4a8eb8d9ccebc8395 (patch) | |
tree | bc882d7be9f4e36f3a4325dfeb29765892125f5a /src/mesa/drivers/dri | |
parent | e98cf031149cd6031b3e22bc06be0a70550ac85b (diff) |
i965/fs: Apply execution controls from the instruction to scratch messages.
Until now the execution controls (e.g. channel group,
force_writemask_all, exec_size) of the instruction had been completely
ignored by spilling, even though that can lead to a mismatch between
the channel mask applied to the contents of the (un)spilled memory and
the GRF source or destination of the instruction. In some cases we'll
actually want the (un)spill messages to be marked force_writemask_all
regardless of whether the instruction has it set, but that will have
to be handled specially by the caller.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index e3ed674d056..b310dcbd4fc 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp @@ -772,9 +772,8 @@ fs_visitor::emit_unspill(bblock_t *block, fs_inst *inst, fs_reg dst, if (dispatch_width == 16 && count % 2 == 0) reg_size = 2; - const fs_builder ibld = bld.annotate(inst->annotation, inst->ir) - .group(reg_size * 8, 0) - .at(block, inst); + const fs_builder ibld = fs_builder(this, block, inst) + .group(reg_size * 8, 0); for (unsigned i = 0; i < count / reg_size; i++) { /* The Gen7 descriptor-based offset is 12 bits of HWORD units. Because @@ -811,9 +810,9 @@ fs_visitor::emit_spill(bblock_t *block, fs_inst *inst, fs_reg src, if (dispatch_width == 16 && count % 2 == 0) reg_size = 2; - const fs_builder ibld = bld.annotate(inst->annotation, inst->ir) - .group(reg_size * 8, 0) - .at(block, inst->next); + const fs_builder ibld = fs_builder(this, block, inst) + .at(block, inst->next) + .group(reg_size * 8, 0); for (unsigned i = 0; i < count / reg_size; i++) { fs_inst *spill_inst = |