diff options
Diffstat (limited to 'src/gallium/tests/trivial')
-rw-r--r-- | src/gallium/tests/trivial/compute.c | 5 |
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]) { |