mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
radeonsi: merge uses_persp_opcode_interp_sample/uses_linear_opcode_interp_sample
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6624>
This commit is contained in:
parent
7b3e24c2d8
commit
8df349a31e
3 changed files with 4 additions and 10 deletions
|
|
@ -355,8 +355,7 @@ struct si_shader_info {
|
|||
bool uses_linear_center;
|
||||
bool uses_linear_centroid;
|
||||
bool uses_linear_sample;
|
||||
bool uses_persp_opcode_interp_sample;
|
||||
bool uses_linear_opcode_interp_sample;
|
||||
bool uses_interp_at_sample;
|
||||
bool uses_instanceid;
|
||||
bool uses_drawid;
|
||||
bool uses_primid;
|
||||
|
|
|
|||
|
|
@ -397,9 +397,6 @@ static void scan_instruction(const struct nir_shader *nir, struct si_shader_info
|
|||
info->uses_linear_centroid = true;
|
||||
else
|
||||
info->uses_linear_center = true;
|
||||
|
||||
if (intr->intrinsic == nir_intrinsic_load_barycentric_at_sample)
|
||||
info->uses_linear_opcode_interp_sample = true;
|
||||
} else {
|
||||
if (intr->intrinsic == nir_intrinsic_load_barycentric_sample)
|
||||
info->uses_persp_sample = true;
|
||||
|
|
@ -407,10 +404,9 @@ static void scan_instruction(const struct nir_shader *nir, struct si_shader_info
|
|||
info->uses_persp_centroid = true;
|
||||
else
|
||||
info->uses_persp_center = true;
|
||||
|
||||
if (intr->intrinsic == nir_intrinsic_load_barycentric_at_sample)
|
||||
info->uses_persp_opcode_interp_sample = true;
|
||||
}
|
||||
if (intr->intrinsic == nir_intrinsic_load_barycentric_at_sample)
|
||||
info->uses_interp_at_sample = true;
|
||||
break;
|
||||
}
|
||||
case nir_intrinsic_load_input:
|
||||
|
|
|
|||
|
|
@ -1980,8 +1980,7 @@ static inline void si_shader_selector_key(struct pipe_context *ctx, struct si_sh
|
|||
sel->info.uses_linear_sample >
|
||||
1;
|
||||
|
||||
if (sel->info.uses_persp_opcode_interp_sample ||
|
||||
sel->info.uses_linear_opcode_interp_sample)
|
||||
if (sel->info.uses_interp_at_sample)
|
||||
key->mono.u.ps.interpolate_at_sample_force_center = 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue