mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
tgsi: drop two unused functions
Removes: * tgsi_util_get_src_from_ind * tgsi_full_src_register_from_dst The last usage of these got removed in !24175 Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24283>
This commit is contained in:
parent
2ed4f04869
commit
d84d5ff0ce
4 changed files with 0 additions and 39 deletions
|
|
@ -1393,18 +1393,3 @@ tgsi_build_full_property(
|
|||
|
||||
return size;
|
||||
}
|
||||
|
||||
struct tgsi_full_src_register
|
||||
tgsi_full_src_register_from_dst(const struct tgsi_full_dst_register *dst)
|
||||
{
|
||||
struct tgsi_full_src_register src;
|
||||
src.Register = tgsi_default_src_register();
|
||||
src.Register.File = dst->Register.File;
|
||||
src.Register.Indirect = dst->Register.Indirect;
|
||||
src.Register.Dimension = dst->Register.Dimension;
|
||||
src.Register.Index = dst->Register.Index;
|
||||
src.Indirect = dst->Indirect;
|
||||
src.Dimension = dst->Dimension;
|
||||
src.DimIndirect = dst->DimIndirect;
|
||||
return src;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,9 +106,6 @@ tgsi_build_full_instruction(
|
|||
struct tgsi_header *header,
|
||||
unsigned maxsize );
|
||||
|
||||
struct tgsi_full_src_register
|
||||
tgsi_full_src_register_from_dst(const struct tgsi_full_dst_register *dst);
|
||||
|
||||
#if defined __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -350,24 +350,6 @@ tgsi_util_get_inst_usage_mask(const struct tgsi_full_instruction *inst,
|
|||
inst->Memory.Texture);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a tgsi_ind_register into a tgsi_src_register
|
||||
*/
|
||||
struct tgsi_src_register
|
||||
tgsi_util_get_src_from_ind(const struct tgsi_ind_register *reg)
|
||||
{
|
||||
struct tgsi_src_register src = { 0 };
|
||||
|
||||
src.File = reg->File;
|
||||
src.Index = reg->Index;
|
||||
src.SwizzleX = reg->Swizzle;
|
||||
src.SwizzleY = reg->Swizzle;
|
||||
src.SwizzleZ = reg->Swizzle;
|
||||
src.SwizzleW = reg->Swizzle;
|
||||
|
||||
return src;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the dimension of the texture coordinates (layer included for array
|
||||
* textures), as well as the location of the shadow reference value or the
|
||||
|
|
|
|||
|
|
@ -68,9 +68,6 @@ tgsi_util_get_src_usage_mask(enum tgsi_opcode opcode,
|
|||
enum tgsi_texture_type tex_target,
|
||||
enum tgsi_texture_type mem_target);
|
||||
|
||||
struct tgsi_src_register
|
||||
tgsi_util_get_src_from_ind(const struct tgsi_ind_register *reg);
|
||||
|
||||
int
|
||||
tgsi_util_get_texture_coord_dim(enum tgsi_texture_type tgsi_tex);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue