mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
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:
parent
29445505f6
commit
b40e3c9e6c
3 changed files with 4 additions and 5 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue