freedreno/a6xx: Drop unneed fd6_texture_state() arg

It is redundant with shader type (stage).

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21408>
This commit is contained in:
Rob Clark 2023-02-12 08:38:52 -08:00 committed by Marge Bot
parent 29445505f6
commit b40e3c9e6c
3 changed files with 4 additions and 5 deletions

View file

@ -60,7 +60,7 @@ tex_state(struct fd_context *ctx, enum pipe_shader_type type)
if (ctx->tex[type].num_textures == 0)
return NULL;
return fd_ringbuffer_ref(fd6_texture_state(ctx, type, &ctx->tex[type])->stateobj);
return fd_ringbuffer_ref(fd6_texture_state(ctx, type)->stateobj);
}
static struct fd_ringbuffer *

View file

@ -689,9 +689,9 @@ handle_invalidates(struct fd_context *ctx)
}
struct fd6_texture_state *
fd6_texture_state(struct fd_context *ctx, enum pipe_shader_type type,
struct fd_texture_stateobj *tex)
fd6_texture_state(struct fd_context *ctx, enum pipe_shader_type type)
{
struct fd_texture_stateobj *tex = &ctx->tex[type];
struct fd6_context *fd6_ctx = fd6_context(ctx);
struct fd6_texture_state *state = NULL;
struct fd6_texture_key key;

View file

@ -130,7 +130,6 @@ struct fd6_texture_state {
};
struct fd6_texture_state *
fd6_texture_state(struct fd_context *ctx, enum pipe_shader_type type,
struct fd_texture_stateobj *tex) assert_dt;
fd6_texture_state(struct fd_context *ctx, enum pipe_shader_type type) assert_dt;
#endif /* FD6_TEXTURE_H_ */