Beispiel #1
0
void
fd_sampler_states_bind(struct pipe_context *pctx,
		unsigned shader, unsigned start,
		unsigned nr, void **hwcso)
{
	struct fd_context *ctx = fd_context(pctx);

	if (shader == PIPE_SHADER_FRAGMENT) {
		bind_sampler_states(&ctx->fragtex, start, nr, hwcso);
		ctx->dirty |= FD_DIRTY_FRAGTEX;
	}
	else if (shader == PIPE_SHADER_VERTEX) {
		bind_sampler_states(&ctx->verttex, start, nr, hwcso);
		ctx->dirty |= FD_DIRTY_VERTTEX;
	}
}
static void
fd_verttex_sampler_states_bind(struct pipe_context *pctx,
		unsigned nr, void **hwcso)
{
	struct fd_context *ctx = fd_context(pctx);
	bind_sampler_states(&ctx->verttex, nr, hwcso);
	ctx->dirty |= FD_DIRTY_VERTTEX;
}