glsl: Remove unused prog parameter from tfeedback_decl::init
It looks like commit 53febac
removed the last user of that parameter.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
@@ -227,8 +227,8 @@ cross_validate_outputs_to_inputs(struct gl_shader_program *prog,
|
|||||||
* will fail to find any matching variable.
|
* will fail to find any matching variable.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
tfeedback_decl::init(struct gl_context *ctx, struct gl_shader_program *prog,
|
tfeedback_decl::init(struct gl_context *ctx, const void *mem_ctx,
|
||||||
const void *mem_ctx, const char *input)
|
const char *input)
|
||||||
{
|
{
|
||||||
/* We don't have to be pedantic about what is a valid GLSL variable name,
|
/* We don't have to be pedantic about what is a valid GLSL variable name,
|
||||||
* because any variable with an invalid name can't exist in the IR anyway.
|
* because any variable with an invalid name can't exist in the IR anyway.
|
||||||
@@ -498,7 +498,7 @@ parse_tfeedback_decls(struct gl_context *ctx, struct gl_shader_program *prog,
|
|||||||
char **varying_names, tfeedback_decl *decls)
|
char **varying_names, tfeedback_decl *decls)
|
||||||
{
|
{
|
||||||
for (unsigned i = 0; i < num_names; ++i) {
|
for (unsigned i = 0; i < num_names; ++i) {
|
||||||
decls[i].init(ctx, prog, mem_ctx, varying_names[i]);
|
decls[i].init(ctx, mem_ctx, varying_names[i]);
|
||||||
|
|
||||||
if (!decls[i].is_varying())
|
if (!decls[i].is_varying())
|
||||||
continue;
|
continue;
|
||||||
|
@@ -91,8 +91,7 @@ struct tfeedback_candidate
|
|||||||
class tfeedback_decl
|
class tfeedback_decl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void init(struct gl_context *ctx, struct gl_shader_program *prog,
|
void init(struct gl_context *ctx, const void *mem_ctx, const char *input);
|
||||||
const void *mem_ctx, const char *input);
|
|
||||||
static bool is_same(const tfeedback_decl &x, const tfeedback_decl &y);
|
static bool is_same(const tfeedback_decl &x, const tfeedback_decl &y);
|
||||||
bool assign_location(struct gl_context *ctx,
|
bool assign_location(struct gl_context *ctx,
|
||||||
struct gl_shader_program *prog);
|
struct gl_shader_program *prog);
|
||||||
|
Reference in New Issue
Block a user