Lines Matching refs:sampler
96 const struct pipe_sampler_state *sampler)
104 cso->mipfilter = translate_mip_filter(sampler->min_mip_filter);
105 cso->magfilter = translate_img_filter( sampler->mag_img_filter );
106 cso->minfilter = translate_img_filter( sampler->min_img_filter );
107 cso->aniso_level = MAX2( sampler->max_anisotropy, 1 );
108 if(sampler->max_anisotropy)
110 cso->lod_bias = sampler->lod_bias;
111 cso->addressu = translate_wrap_mode(sampler->wrap_s);
112 cso->addressv = translate_wrap_mode(sampler->wrap_t);
113 cso->addressw = translate_wrap_mode(sampler->wrap_r);
114 cso->normalized_coords = sampler->normalized_coords;
115 cso->compare_mode = sampler->compare_mode;
116 cso->compare_func = sampler->compare_func;
119 uint32 r = float_to_ubyte(sampler->border_color.f[0]);
120 uint32 g = float_to_ubyte(sampler->border_color.f[1]);
121 uint32 b = float_to_ubyte(sampler->border_color.f[2]);
122 uint32 a = float_to_ubyte(sampler->border_color.f[3]);
131 cso->view_min_lod = MAX2((int) (sampler->min_lod + 0.5), 0);
132 cso->view_max_lod = MAX2((int) (sampler->max_lod + 0.5), 0);
170 !memcmp(svga->curr.sampler + start, samplers, num * sizeof(void *))) {
171 if (0) debug_printf("sampler noop\n");
176 svga->curr.sampler[start + i] = samplers[i];
181 while (j > 0 && svga->curr.sampler[j - 1] == NULL)
192 unsigned num, void **sampler)
194 svga_bind_sampler_states(pipe, PIPE_SHADER_FRAGMENT, 0, num, sampler);
199 void *sampler)
201 FREE(sampler);
247 /* we only support fragment shader sampler views at this time */