static void
identity_bind_sampler_states(struct pipe_context *_pipe,
unsigned shader,
+ unsigned start,
unsigned num_samplers,
void **samplers)
{
struct identity_context *id_pipe = identity_context(_pipe);
struct pipe_context *pipe = id_pipe->pipe;
+ /* remove this when we have pipe->bind_sampler_states(..., start, ...) */
+ assert(start == 0);
+
switch (shader) {
case PIPE_SHADER_VERTEX:
pipe->bind_vertex_sampler_states(pipe, num_samplers, samplers);
void **samplers)
{
identity_bind_sampler_states(_pipe, PIPE_SHADER_FRAGMENT,
- num_samplers, samplers);
+ 0, num_samplers, samplers);
}
static void
void **samplers)
{
identity_bind_sampler_states(_pipe, PIPE_SHADER_VERTEX,
- num_samplers, samplers);
+ 0, num_samplers, samplers);
}
static void
static void
identity_set_sampler_views(struct pipe_context *_pipe,
unsigned shader,
+ unsigned start,
unsigned num,
struct pipe_sampler_view **_views)
{
struct pipe_sampler_view **views = NULL;
unsigned i;
+ /* remove this when we have pipe->set_sampler_views(..., start, ...) */
+ assert(start == 0);
+
if (_views) {
for (i = 0; i < num; i++)
unwrapped_views[i] = identity_sampler_view_unwrap(_views[i]);
unsigned num,
struct pipe_sampler_view **_views)
{
- identity_set_sampler_views(_pipe, PIPE_SHADER_FRAGMENT, num, _views);
+ identity_set_sampler_views(_pipe, PIPE_SHADER_FRAGMENT, 0, num, _views);
}
static void
unsigned num,
struct pipe_sampler_view **_views)
{
- identity_set_sampler_views(_pipe, PIPE_SHADER_VERTEX, num, _views);
+ identity_set_sampler_views(_pipe, PIPE_SHADER_VERTEX, 0, num, _views);
}
static void