static INLINE void
trace_context_bind_sampler_states(struct pipe_context *_pipe,
unsigned shader,
+ unsigned start,
unsigned num_states,
void **states)
{
struct trace_context *tr_ctx = trace_context(_pipe);
struct pipe_context *pipe = tr_ctx->pipe;
+ /* remove this when we have pipe->bind_sampler_states(..., start, ...) */
+ assert(start == 0);
+
switch (shader) {
case PIPE_SHADER_VERTEX:
trace_dump_call_begin("pipe_context", "bind_vertex_sampler_states");
unsigned num,
void **states)
{
- trace_context_bind_sampler_states(_pipe, PIPE_SHADER_FRAGMENT, num, states);
+ trace_context_bind_sampler_states(_pipe, PIPE_SHADER_FRAGMENT,
+ 0, num, states);
}
unsigned num,
void **states)
{
- trace_context_bind_sampler_states(_pipe, PIPE_SHADER_VERTEX, num, states);
+ trace_context_bind_sampler_states(_pipe, PIPE_SHADER_VERTEX,
+ 0, num, states);
}
static INLINE void
trace_context_set_sampler_views(struct pipe_context *_pipe,
unsigned shader,
+ unsigned start,
unsigned num,
struct pipe_sampler_view **views)
{
struct pipe_sampler_view *unwrapped_views[PIPE_MAX_SAMPLERS];
unsigned i;
+ /* remove this when we have pipe->set_sampler_views(..., start, ...) */
+ assert(start == 0);
+
for(i = 0; i < num; ++i) {
tr_view = trace_sampler_view(views[i]);
unwrapped_views[i] = tr_view ? tr_view->sampler_view : NULL;
unsigned num,
struct pipe_sampler_view **views)
{
- trace_context_set_sampler_views(_pipe, PIPE_SHADER_FRAGMENT, num, views);
+ trace_context_set_sampler_views(_pipe, PIPE_SHADER_FRAGMENT, 0, num, views);
}
unsigned num,
struct pipe_sampler_view **views)
{
- trace_context_set_sampler_views(_pipe, PIPE_SHADER_VERTEX, num, views);
+ trace_context_set_sampler_views(_pipe, PIPE_SHADER_VERTEX, 0, num, views);
}