if (sampler == NULL)
exit(6);
- ctx->bind_fragment_sampler_states(ctx, 1, &sampler);
+ ctx->bind_sampler_states(ctx, PIPE_SHADER_FRAGMENT, 0, 1, &sampler);
}
if (sampler == NULL)
exit(6);
- ctx->bind_fragment_sampler_states(ctx, 1, &sampler);
+ ctx->bind_sampler_states(ctx, PIPE_SHADER_FRAGMENT, 0, 1, &sampler);
}
if (sampler == NULL)
exit(6);
- ctx->bind_fragment_sampler_states(ctx, 1, &sampler);
+ ctx->bind_sampler_states(ctx, PIPE_SHADE_FRAGMENT, 0, 1, &sampler);
}
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);
}
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 */
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
}
if (sampler == NULL)
exit(6);
- ctx->bind_fragment_sampler_states(ctx, 1, &sampler);
+ ctx->bind_sampler_states(ctx, PIPE_SHADER_FRAGMENT, 0, 1, &sampler);
}
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)
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]) {