mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 15:40:11 +01:00
tgsi: remove unused tgsi_shader_info.colors_read
Reviewed-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24100>
This commit is contained in:
parent
849065b9f3
commit
9684fbc87d
3 changed files with 1 additions and 10 deletions
|
|
@ -149,10 +149,6 @@ static void gather_intrinsic_load_deref_info(const nir_shader *nir,
|
|||
tgsi_get_gl_varying_semantic(var->data.location, need_texcoord,
|
||||
&semantic_name, &semantic_index);
|
||||
|
||||
if (semantic_name == TGSI_SEMANTIC_COLOR) {
|
||||
uint8_t mask = nir_ssa_def_components_read(&instr->dest.ssa);
|
||||
info->colors_read |= mask << (semantic_index * 4);
|
||||
}
|
||||
if (semantic_name == TGSI_SEMANTIC_FACE) {
|
||||
info->uses_frontface = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ scan_src_operand(struct tgsi_shader_info *info,
|
|||
}
|
||||
|
||||
if (info->processor == PIPE_SHADER_FRAGMENT) {
|
||||
unsigned name, index, input;
|
||||
unsigned name, input;
|
||||
|
||||
if (src->Register.Indirect && src->Indirect.ArrayID)
|
||||
input = info->input_array_first[src->Indirect.ArrayID];
|
||||
|
|
@ -165,15 +165,11 @@ scan_src_operand(struct tgsi_shader_info *info,
|
|||
input = src->Register.Index;
|
||||
|
||||
name = info->input_semantic_name[input];
|
||||
index = info->input_semantic_index[input];
|
||||
|
||||
if (name == TGSI_SEMANTIC_POSITION &&
|
||||
usage_mask_after_swizzle & TGSI_WRITEMASK_Z)
|
||||
info->reads_z = true;
|
||||
|
||||
if (name == TGSI_SEMANTIC_COLOR)
|
||||
info->colors_read |= usage_mask_after_swizzle << (index * 4);
|
||||
|
||||
/* Process only interpolated varyings. Don't include POSITION.
|
||||
* Don't include integer varyings, because they are not
|
||||
* interpolated. Don't process inputs interpolated by INTERP
|
||||
|
|
|
|||
|
|
@ -84,7 +84,6 @@ struct tgsi_shader_info
|
|||
bool reads_perpatch_outputs;
|
||||
bool reads_tessfactor_outputs;
|
||||
|
||||
uint8_t colors_read; /**< which color components are read by the FS */
|
||||
uint8_t colors_written;
|
||||
bool reads_position; /**< does fragment shader read position? */
|
||||
bool reads_z; /**< does fragment shader read depth? */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue