mesa: (trivial) remove unused ignore_sample_qualifier_parameter
authorRoland Scheidegger <sroland@vmware.com>
Sat, 3 Feb 2018 23:32:05 +0000 (00:32 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 8 Feb 2018 03:07:52 +0000 (04:07 +0100)
This parameter for _mesa_get_min_incations_per_fragment() was once used
by the intel driver, but it's long gone.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Dave Airlie <airlied@vmware.com>
src/mesa/program/program.c
src/mesa/program/program.h
src/mesa/state_tracker/st_atom_msaa.c

index 220efc35394eb49a70e531c1066b868ce9f02650..6aba3cb3f10a900652e13445ce9787afd71f8b4f 100644 (file)
@@ -515,8 +515,7 @@ _mesa_find_free_register(const GLboolean used[],
  */
 GLint
 _mesa_get_min_invocations_per_fragment(struct gl_context *ctx,
-                                       const struct gl_program *prog,
-                                       bool ignore_sample_qualifier)
+                                       const struct gl_program *prog)
 {
    /* From ARB_sample_shading specification:
     * "Using gl_SampleID in a fragment shader causes the entire shader
@@ -534,11 +533,9 @@ _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->info.fs.uses_sample_qualifier && !ignore_sample_qualifier)
-         return MAX2(_mesa_geometric_samples(ctx->DrawBuffer), 1);
-
-      if (prog->info.system_values_read & (SYSTEM_BIT_SAMPLE_ID |
-                                           SYSTEM_BIT_SAMPLE_POS))
+      if (prog->info.fs.uses_sample_qualifier ||
+          (prog->info.system_values_read & (SYSTEM_BIT_SAMPLE_ID |
+                                            SYSTEM_BIT_SAMPLE_POS)))
          return MAX2(_mesa_geometric_samples(ctx->DrawBuffer), 1);
       else if (ctx->Multisample.SampleShading)
          return MAX2(ceil(ctx->Multisample.MinSampleShadingValue *
index 376da7b2d41403741d2a64669eaa60ef69c88deb..659385f55b19065f604acb72ff482789eeab1a57 100644 (file)
@@ -108,8 +108,7 @@ _mesa_find_free_register(const GLboolean used[],
 
 extern GLint
 _mesa_get_min_invocations_per_fragment(struct gl_context *ctx,
-                                       const struct gl_program *prog,
-                                       bool ignore_sample_qualifier);
+                                       const struct gl_program *prog);
 
 static inline GLuint
 _mesa_program_enum_to_shader_stage(GLenum v)
index 589e328ac5522fe812aca8a3fb7cc6f559d57048..556c7c5889e02225b281185452a6590d659f4012 100644 (file)
@@ -77,5 +77,5 @@ st_update_sample_shading(struct st_context *st)
       return;
 
    cso_set_min_samples(st->cso_context,
-         _mesa_get_min_invocations_per_fragment(st->ctx, &st->fp->Base, false));
+         _mesa_get_min_invocations_per_fragment(st->ctx, &st->fp->Base));
 }