mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
freedreno: allow each generation to hook into sampler view setting
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
618ff11457
commit
8e336ef55b
5 changed files with 8 additions and 3 deletions
|
|
@ -175,4 +175,5 @@ fd2_texture_init(struct pipe_context *pctx)
|
|||
pctx->create_sampler_state = fd2_sampler_state_create;
|
||||
pctx->bind_sampler_states = fd2_sampler_states_bind;
|
||||
pctx->create_sampler_view = fd2_sampler_view_create;
|
||||
pctx->set_sampler_views = fd_set_sampler_views;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -267,4 +267,5 @@ fd3_texture_init(struct pipe_context *pctx)
|
|||
pctx->create_sampler_state = fd3_sampler_state_create;
|
||||
pctx->bind_sampler_states = fd3_sampler_states_bind;
|
||||
pctx->create_sampler_view = fd3_sampler_view_create;
|
||||
pctx->set_sampler_views = fd_set_sampler_views;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -187,4 +187,5 @@ fd4_texture_init(struct pipe_context *pctx)
|
|||
pctx->create_sampler_state = fd4_sampler_state_create;
|
||||
pctx->bind_sampler_states = fd_sampler_states_bind;
|
||||
pctx->create_sampler_view = fd4_sampler_view_create;
|
||||
pctx->set_sampler_views = fd_set_sampler_views;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ fd_verttex_set_sampler_views(struct pipe_context *pctx, unsigned nr,
|
|||
ctx->dirty |= FD_DIRTY_VERTTEX;
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
fd_set_sampler_views(struct pipe_context *pctx, unsigned shader,
|
||||
unsigned start, unsigned nr,
|
||||
struct pipe_sampler_view **views)
|
||||
|
|
@ -161,6 +161,4 @@ fd_texture_init(struct pipe_context *pctx)
|
|||
pctx->delete_sampler_state = fd_sampler_state_delete;
|
||||
|
||||
pctx->sampler_view_destroy = fd_sampler_view_destroy;
|
||||
|
||||
pctx->set_sampler_views = fd_set_sampler_views;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,10 @@ void fd_sampler_states_bind(struct pipe_context *pctx,
|
|||
unsigned shader, unsigned start,
|
||||
unsigned nr, void **hwcso);
|
||||
|
||||
void fd_set_sampler_views(struct pipe_context *pctx, unsigned shader,
|
||||
unsigned start, unsigned nr,
|
||||
struct pipe_sampler_view **views);
|
||||
|
||||
void fd_texture_init(struct pipe_context *pctx);
|
||||
|
||||
#endif /* FREEDRENO_TEXTURE_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue