From: Marek Olšák Date: Wed, 17 Jul 2019 23:32:12 +0000 (-0400) Subject: radeonsi: stop using info.opcode_count[TGSI_OPCODE_INTERP_SAMPLE] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad642d5b3a8c6c366731bc26551c149e50b83c6c;p=mesa.git radeonsi: stop using info.opcode_count[TGSI_OPCODE_INTERP_SAMPLE] Reviewed-by: Pierre-Eric Pelloux-Prayer --- diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index c5e9230b1ca..388bc68adce 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -2007,7 +2007,8 @@ static inline void si_shader_selector_key(struct pipe_context *ctx, sel->info.uses_linear_centroid + sel->info.uses_linear_sample > 1; - if (sel->info.opcode_count[TGSI_OPCODE_INTERP_SAMPLE]) + if (sel->info.uses_persp_opcode_interp_sample || + sel->info.uses_linear_opcode_interp_sample) key->mono.u.ps.interpolate_at_sample_force_center = 1; }