Otherwise it is fairly confusing.
/* The most recent drawing state as set by the driver:
*/
const struct i915_blend_state *blend;
- const struct i915_sampler_state *sampler[PIPE_MAX_SAMPLERS];
- struct pipe_sampler_state *vertex_samplers[PIPE_MAX_SAMPLERS];
+ const struct i915_sampler_state *fragment_sampler[PIPE_MAX_SAMPLERS];
+ struct pipe_sampler_state *vertex_samplers[PIPE_MAX_SAMPLERS];
const struct i915_depth_stencil_state *depth_stencil;
const struct i915_rasterizer_state *rasterizer;
/* Check for no-op */
if (num == i915->num_samplers &&
- !memcmp(i915->sampler + start, samplers,
+ !memcmp(i915->fragment_sampler + start, samplers,
num * sizeof(void *)))
return;
for (i = 0; i < num; ++i)
- i915->sampler[i + start] = samplers[i];
+ i915->fragment_sampler[i + start] = samplers[i];
/* find highest non-null samplers[] entry */
{
unsigned j = MAX2(i915->num_samplers, start + num);
- while (j > 0 && i915->sampler[j - 1] == NULL)
+ while (j > 0 && i915->fragment_sampler[j - 1] == NULL)
j--;
i915->num_samplers = j;
}
update_sampler(i915,
unit,
- i915->sampler[unit], /* sampler state */
+ i915->fragment_sampler[unit], /* sampler state */
texture, /* texture */
i915->current.sampler[unit]); /* the result */
update_map(i915,
unit,
texture, /* texture */
- i915->sampler[unit], /* sampler state */
+ i915->fragment_sampler[unit], /* sampler state */
i915->fragment_sampler_views[unit], /* sampler view */
i915->current.texbuffer[unit]); /* the result */
update_map(i915,
unit,
texture, /* texture */
- i915->sampler[unit], /* sampler state */
+ i915->fragment_sampler[unit], /* sampler state */
i915->fragment_sampler_views[unit], /* sampler view */
i915->current.texbuffer[unit]);
}
util_blitter_save_fragment_sampler_states(i915->blitter,
i915->num_samplers,
- (void**)i915->sampler);
+ (void**)i915->fragment_sampler);
util_blitter_save_fragment_sampler_views(i915->blitter,
i915->num_fragment_sampler_views,
i915->fragment_sampler_views);