summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/trivial
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-09-12 15:40:13 -0600
committerBrian Paul <[email protected]>2013-10-03 14:05:27 -0600
commita5350a9f3efc0cf45ecb27cba8deedf9488f073b (patch)
tree5591d7ae03b0be9cd8b5b683cd9a92eab81c202d /src/gallium/tests/trivial
parentbc367ab54d8c18b06fbbb3838a0d19240c1afe9b (diff)
gallium/tests: use pipe_context::bind_sampler_states()
Diffstat (limited to 'src/gallium/tests/trivial')
-rw-r--r--src/gallium/tests/trivial/compute.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/tests/trivial/compute.c b/src/gallium/tests/trivial/compute.c
index 5337b86e8fe..339c2647e81 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]) {