[Mesa-dev] [PATCH v2 3/4] mesa/program/prog_execute.c: Silence -Wunused-param

Gert Wollny gw.fossdev at gmail.com
Thu Jan 18 08:57:28 UTC 2018


v2: Remove the unused ctx parameter from fetch_vector4_deriv

v1: Annotate unused parameter
v1 was Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
---
 src/mesa/program/prog_execute.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c
index 1268476279..2c77538c2a 100644
--- a/src/mesa/program/prog_execute.c
+++ b/src/mesa/program/prog_execute.c
@@ -222,8 +222,7 @@ fetch_vector4(const struct prog_src_register *source,
  * XXX this currently only works for fragment program input attribs.
  */
 static void
-fetch_vector4_deriv(struct gl_context * ctx,
-                    const struct prog_src_register *source,
+fetch_vector4_deriv(const struct prog_src_register *source,
                     const struct gl_program_machine *machine,
                     char xOrY, GLfloat result[4])
 {
@@ -507,16 +506,14 @@ _mesa_execute_program(struct gl_context * ctx,
       case OPCODE_DDX:         /* Partial derivative with respect to X */
          {
             GLfloat result[4];
-            fetch_vector4_deriv(ctx, &inst->SrcReg[0], machine,
-                                'X', result);
+            fetch_vector4_deriv(&inst->SrcReg[0], machine, 'X', result);
             store_vector4(inst, machine, result);
          }
          break;
       case OPCODE_DDY:         /* Partial derivative with respect to Y */
          {
             GLfloat result[4];
-            fetch_vector4_deriv(ctx, &inst->SrcReg[0], machine,
-                                'Y', result);
+            fetch_vector4_deriv(&inst->SrcReg[0], machine, 'Y', result);
             store_vector4(inst, machine, result);
          }
          break;
-- 
2.13.6



More information about the mesa-dev mailing list