mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
ac/nir: Remove ac_nir_calc_io_offset function.
This function is not used anymore, because none of the callers rely on driver locations (intrinsic base) anymore. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29812>
This commit is contained in:
parent
7c009172e3
commit
d43466e917
2 changed files with 0 additions and 22 deletions
|
|
@ -642,21 +642,6 @@ ac_nir_calc_io_offset_mapped(nir_builder *b,
|
|||
return nir_iadd_imm_nuw(b, nir_iadd_nuw(b, base_op, offset_op), const_op);
|
||||
}
|
||||
|
||||
nir_def *
|
||||
ac_nir_calc_io_offset(nir_builder *b,
|
||||
nir_intrinsic_instr *intrin,
|
||||
nir_def *base_stride,
|
||||
unsigned component_stride,
|
||||
ac_nir_map_io_driver_location map_io)
|
||||
{
|
||||
unsigned base = nir_intrinsic_base(intrin);
|
||||
unsigned semantic = nir_intrinsic_io_semantics(intrin).location;
|
||||
unsigned mapped_driver_location = map_io ? map_io(semantic) : base;
|
||||
|
||||
return ac_nir_calc_io_offset_mapped(b, intrin, base_stride, component_stride,
|
||||
mapped_driver_location);
|
||||
}
|
||||
|
||||
bool
|
||||
ac_nir_lower_indirect_derefs(nir_shader *shader,
|
||||
enum amd_gfx_level gfx_level)
|
||||
|
|
|
|||
|
|
@ -111,13 +111,6 @@ ac_nir_export_parameters(nir_builder *b,
|
|||
nir_def *(*outputs_16bit_lo)[4],
|
||||
nir_def *(*outputs_16bit_hi)[4]);
|
||||
|
||||
nir_def *
|
||||
ac_nir_calc_io_offset(nir_builder *b,
|
||||
nir_intrinsic_instr *intrin,
|
||||
nir_def *base_stride,
|
||||
unsigned component_stride,
|
||||
ac_nir_map_io_driver_location map_io);
|
||||
|
||||
nir_def *
|
||||
ac_nir_calc_io_offset_mapped(nir_builder *b,
|
||||
nir_intrinsic_instr *intrin,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue