radeonsi: stop using info.opcode_count[TGSI_OPCODE_INTERP_SAMPLE]
authorMarek Olšák <marek.olsak@amd.com>
Wed, 17 Jul 2019 23:32:12 +0000 (19:32 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 23 Jul 2019 19:03:46 +0000 (15:03 -0400)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index c5e9230b1ca590dd8639d064534a6f9381bda7db..388bc68adceed3ee116a4853e3da23c2ac4343f1 100644 (file)
@@ -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;
                }