diff options
author | Gert Wollny <[email protected]> | 2018-01-18 09:57:28 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-01-19 15:45:57 +0000 |
commit | 81d8a0f4a44f8465e674b880fb8a4fb65320e8cb (patch) | |
tree | fe863a362bb22982310fbfd9c8d956f3f2a03889 /src | |
parent | fef4b16523dea0be0de748fcab7e6367ed8e9542 (diff) |
mesa/program/prog_execute.c: Silence -Wunused-param
v2: Don't annotate, but remove the unused ctx parameter
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/program/prog_execute.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c index 12684762794..2c77538c2af 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; |