summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-09-12 15:40:13 -0600
committerBrian Paul <brianp@vmware.com>2013-09-12 18:11:52 -0600
commit8150362847c618968c1f3918f474e2b4a1b4823e (patch)
treeb5902c46eeae32f90145f3a91690493f9a9b58dd
parent4c0715130d075aa7b191c27b881239fa6541c4be (diff)
gallium/tests: use pipe_context::bind_sampler_states()
-rw-r--r--src/gallium/tests/graw/fs-test.c2
-rw-r--r--src/gallium/tests/graw/gs-test.c2
-rw-r--r--src/gallium/tests/graw/quad-sample.c2
-rw-r--r--src/gallium/tests/graw/quad-tex.c3
-rw-r--r--src/gallium/tests/graw/tex-srgb.c3
-rw-r--r--src/gallium/tests/graw/tex-swizzle.c3
-rw-r--r--src/gallium/tests/graw/vs-test.c2
-rw-r--r--src/gallium/tests/trivial/compute.c5
8 files changed, 13 insertions, 9 deletions
diff --git a/src/gallium/tests/graw/fs-test.c b/src/gallium/tests/graw/fs-test.c
index 38a2c4b8c5..d9627913cf 100644
--- a/src/gallium/tests/graw/fs-test.c
+++ b/src/gallium/tests/graw/fs-test.c
@@ -371,7 +371,7 @@ static void init_tex( void )
if (sampler == NULL)
exit(6);
- ctx->bind_fragment_sampler_states(ctx, 1, &sampler);
+ ctx->bind_sampler_states(ctx, PIPE_SHADER_FRAGMENT, 0, 1, &sampler);
}
diff --git a/src/gallium/tests/graw/gs-test.c b/src/gallium/tests/graw/gs-test.c
index e4e4f61eba..2a8f26eedd 100644
--- a/src/gallium/tests/graw/gs-test.c
+++ b/src/gallium/tests/graw/gs-test.c
@@ -478,7 +478,7 @@ static void init_tex( void )
if (sampler == NULL)
exit(6);
- ctx->bind_fragment_sampler_states(ctx, 1, &sampler);
+ ctx->bind_sampler_states(ctx, PIPE_SHADER_FRAGMENT, 0, 1, &sampler);
}
diff --git a/src/gallium/tests/graw/quad-sample.c b/src/gallium/tests/graw/quad-sample.c
index 969ffa71cd..847cb95a7c 100644
--- a/src/gallium/tests/graw/quad-sample.c
+++ b/src/gallium/tests/graw/quad-sample.c
@@ -286,7 +286,7 @@ static void init_tex( void )
if (sampler == NULL)
exit(6);
- ctx->bind_fragment_sampler_states(ctx, 1, &sampler);
+ ctx->bind_sampler_states(ctx, PIPE_SHADE_FRAGMENT, 0, 1, &sampler);
}
diff --git a/src/gallium/tests/graw/quad-tex.c b/src/gallium/tests/graw/quad-tex.c
index 6cfcea33dd..7802d8efdd 100644
--- a/src/gallium/tests/graw/quad-tex.c
+++ b/src/gallium/tests/graw/quad-tex.c
@@ -172,7 +172,8 @@ static void init_tex( void )
sampler = graw_util_create_simple_sampler(&info,
PIPE_TEX_WRAP_REPEAT,
PIPE_TEX_FILTER_NEAREST);
- info.ctx->bind_fragment_sampler_states(info.ctx, 1, &sampler);
+ info.ctx->bind_sampler_states(info.ctx, PIPE_SHADER_FRAGMENT,
+ 0, 1, &sampler);
}
diff --git a/src/gallium/tests/graw/tex-srgb.c b/src/gallium/tests/graw/tex-srgb.c
index 296d22afc5..5035fa781a 100644
--- a/src/gallium/tests/graw/tex-srgb.c
+++ b/src/gallium/tests/graw/tex-srgb.c
@@ -165,7 +165,8 @@ static void init_tex( void )
sampler = graw_util_create_simple_sampler(&info,
PIPE_TEX_WRAP_REPEAT,
PIPE_TEX_FILTER_NEAREST);
- info.ctx->bind_fragment_sampler_states(info.ctx, 1, &sampler);
+ info.ctx->bind_sampler_states(info.ctx, PIPE_SHADER_FRAGMENT,
+ 0, 1, &sampler);
}
/* linear sampler view */
diff --git a/src/gallium/tests/graw/tex-swizzle.c b/src/gallium/tests/graw/tex-swizzle.c
index 4ee79ee7a2..65c1d4dde5 100644
--- a/src/gallium/tests/graw/tex-swizzle.c
+++ b/src/gallium/tests/graw/tex-swizzle.c
@@ -152,7 +152,8 @@ init_tex(const unsigned swizzle[4])
PIPE_TEX_WRAP_REPEAT,
PIPE_TEX_FILTER_NEAREST);
- info.ctx->bind_fragment_sampler_states(info.ctx, 1, &sampler);
+ info.ctx->bind_sampler_states(info.ctx, PIPE_SHADER_FRAGMENT,
+ 0, 1, &sampler);
#undef SIZE
}
diff --git a/src/gallium/tests/graw/vs-test.c b/src/gallium/tests/graw/vs-test.c
index 5a7d0a00ee..f351928592 100644
--- a/src/gallium/tests/graw/vs-test.c
+++ b/src/gallium/tests/graw/vs-test.c
@@ -365,7 +365,7 @@ static void init_tex( void )
if (sampler == NULL)
exit(6);
- ctx->bind_fragment_sampler_states(ctx, 1, &sampler);
+ ctx->bind_sampler_states(ctx, PIPE_SHADER_FRAGMENT, 0, 1, &sampler);
}
diff --git a/src/gallium/tests/trivial/compute.c b/src/gallium/tests/trivial/compute.c
index 5337b86e8f..339c2647e8 100644
--- a/src/gallium/tests/trivial/compute.c
+++ b/src/gallium/tests/trivial/compute.c
@@ -380,7 +380,7 @@ static void init_sampler_states(struct context *ctx, int n)
assert(ctx->hwsmp[i]);
}
- pipe->bind_compute_sampler_states(pipe, 0, i, ctx->hwsmp);
+ pipe->bind_sampler_states(pipe, PIPE_SHADER_COMPUTE, 0, i, ctx->hwsmp);
}
static void destroy_sampler_states(struct context *ctx)
@@ -388,7 +388,8 @@ static void destroy_sampler_states(struct context *ctx)
struct pipe_context *pipe = ctx->pipe;
int i;
- pipe->bind_compute_sampler_states(pipe, 0, MAX_RESOURCES, NULL);
+ pipe->bind_sampler_states(pipe, PIPE_SHADER_COMPUTE,
+ 0, MAX_RESOURCES, NULL);
for (i = 0; i < MAX_RESOURCES; ++i) {
if (ctx->hwsmp[i]) {