aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a3xx/fd3_texture.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-09-29 14:55:38 -0400
committerRob Clark <[email protected]>2014-09-29 18:30:42 -0400
commita6746d11247cdd6f795c7e857019c3a4bd71e26a (patch)
tree81240f50c3c792b098e23d49bc5e1ee2f4e8b9e4 /src/gallium/drivers/freedreno/a3xx/fd3_texture.c
parent7e20c09d4ac22012a9d2697fb83e6815edb5a64d (diff)
freedreno: move bind_sampler_states to per-generation
Keep the existing function as a common helper. But this lets us move an a2xx specific hack out of common code. And the PIPE_TEX_WRAP_CLAMP emulation will require an a3xx specific hack. So rather than piling on hacks, split this out. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx/fd3_texture.c')
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_texture.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c
index 436d51af7b6..918dcc491f2 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c
@@ -119,6 +119,14 @@ fd3_sampler_state_create(struct pipe_context *pctx,
return so;
}
+static void
+fd3_sampler_states_bind(struct pipe_context *pctx,
+ unsigned shader, unsigned start,
+ unsigned nr, void **hwcso)
+{
+ fd_sampler_states_bind(pctx, shader, start, nr, hwcso);
+}
+
static enum a3xx_tex_type
tex_type(unsigned target)
{
@@ -204,5 +212,6 @@ void
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;
}