assert(shader < PIPE_SHADER_TYPES);
assert(start + num <= Elements(softpipe->samplers[shader]));
- /* Check for no-op */
- if (start + num <= softpipe->num_samplers[shader] &&
- !memcmp(softpipe->samplers[shader] + start, samplers,
- num * sizeof(void *))) {
- return;
- }
-
draw_flush(softpipe->draw);
/* set the new samplers */
assert(shader < PIPE_SHADER_TYPES);
assert(start + num <= Elements(softpipe->sampler_views[shader]));
- /* Check for no-op */
- if (start + num <= softpipe->num_sampler_views[shader] &&
- !memcmp(softpipe->sampler_views[shader] + start, views,
- num * sizeof(struct pipe_sampler_view *))) {
- return;
- }
-
draw_flush(softpipe->draw);
/* set the new sampler views */