From 17e28a1571b6141368fefc84cc8b0a3b4e52f8ee Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 19 Oct 2016 13:45:18 +1100 Subject: i965/mesa/st/swrast: set fs shader_info directly and switch to using it Note we access shader_info from the program struct rather than the nir_shader pointer because shader cache won't create a nir_shader. Reviewed-by: Jason Ekstrand --- src/mesa/program/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/program/program.c') diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c index 61cc6fe9e96..1d9eaa0c69a 100644 --- a/src/mesa/program/program.c +++ b/src/mesa/program/program.c @@ -521,7 +521,7 @@ _mesa_get_min_invocations_per_fragment(struct gl_context *ctx, * "Use of the "sample" qualifier on a fragment shader input * forces per-sample shading" */ - if (prog->IsSample && !ignore_sample_qualifier) + if (prog->Base.info.fs.uses_sample_qualifier && !ignore_sample_qualifier) return MAX2(_mesa_geometric_samples(ctx->DrawBuffer), 1); if (prog->Base.SystemValuesRead & (SYSTEM_BIT_SAMPLE_ID | -- cgit v1.2.3