mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 15:40:11 +01:00
brw: Use a builder to track position in lower_simd
Removes brw_builder::at() since it is now unused, replaced by various other helpers. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34681>
This commit is contained in:
parent
8826b1e680
commit
ab8af62745
2 changed files with 3 additions and 16 deletions
|
|
@ -82,20 +82,6 @@ public:
|
|||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct an brw_builder that inserts instructions before \p cursor in
|
||||
* basic block \p block, inheriting other code generation parameters
|
||||
* from this.
|
||||
*/
|
||||
brw_builder
|
||||
at(bblock_t *block, exec_node *cursor) const
|
||||
{
|
||||
brw_builder bld = *this;
|
||||
bld.block = block;
|
||||
bld.cursor = cursor;
|
||||
return bld;
|
||||
}
|
||||
|
||||
brw_builder
|
||||
at_start(bblock_t *block) const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -725,7 +725,7 @@ brw_lower_simd_width(brw_shader &s)
|
|||
* instructions (this is required for some render target writes), we
|
||||
* split from the highest group to lowest.
|
||||
*/
|
||||
exec_node *const after_inst = inst->next;
|
||||
const brw_builder zip_bld = ibld.after(inst);
|
||||
for (int i = n - 1; i >= 0; i--) {
|
||||
/* Emit a copy of the original instruction with the lowered width.
|
||||
* If the EOT flag was set throw it away except for the last
|
||||
|
|
@ -740,12 +740,13 @@ brw_lower_simd_width(brw_shader &s)
|
|||
* instruction.
|
||||
*/
|
||||
const brw_builder lbld = ibld.group(lower_width, i);
|
||||
const brw_builder lbld_after = zip_bld.group(lower_width, i);
|
||||
|
||||
for (unsigned j = 0; j < inst->sources; j++)
|
||||
split_inst.src[j] = emit_unzip(lbld.before(inst), inst, j);
|
||||
|
||||
split_inst.dst = emit_zip(lbld.before(inst),
|
||||
lbld.at(block, after_inst), inst);
|
||||
lbld_after, inst);
|
||||
split_inst.size_written =
|
||||
split_inst.dst.component_size(lower_width) * dst_size +
|
||||
residency_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue