Home
last modified time | relevance | path

Searched refs:sampler_views (Results 1 – 25 of 45) sorted by relevance

12

/external/mesa3d/src/gallium/state_trackers/vega/
Dshader.c166 struct pipe_sampler_view **sampler_views) in blend_bind_samplers() argument
172 sampler_views[2] = vg_prepare_blend_surface(ctx); in blend_bind_samplers()
174 if (!samplers[0] || !sampler_views[0]) { in blend_bind_samplers()
176 sampler_views[0] = sampler_views[2]; in blend_bind_samplers()
178 if (!samplers[1] || !sampler_views[1]) { in blend_bind_samplers()
180 sampler_views[1] = sampler_views[0]; in blend_bind_samplers()
190 struct pipe_sampler_view **sampler_views) in setup_samplers() argument
206 sampler_views[0] = NULL; in setup_samplers()
207 sampler_views[1] = NULL; in setup_samplers()
208 sampler_views[2] = NULL; in setup_samplers()
[all …]
Dmask.h66 struct pipe_sampler_view **sampler_views);
Dimage.h92 struct pipe_sampler_view **sampler_views);
Dpaint.h111 struct pipe_sampler_view **sampler_views);
/external/mesa3d/src/gallium/state_trackers/vdpau/
Dsurface.c199 struct pipe_sampler_view **sampler_views; in vlVdpVideoSurfaceGetBitsYCbCr() local
218 sampler_views = vlsurface->video_buffer->get_sampler_view_planes(vlsurface->video_buffer); in vlVdpVideoSurfaceGetBitsYCbCr()
219 if (!sampler_views) { in vlVdpVideoSurfaceGetBitsYCbCr()
226 struct pipe_sampler_view *sv = sampler_views[i]; in vlVdpVideoSurfaceGetBitsYCbCr()
277 struct pipe_sampler_view **sampler_views; in vlVdpVideoSurfacePutBitsYCbCr() local
312 sampler_views = p_surf->video_buffer->get_sampler_view_planes(p_surf->video_buffer); in vlVdpVideoSurfacePutBitsYCbCr()
313 if (!sampler_views) { in vlVdpVideoSurfacePutBitsYCbCr()
320 struct pipe_sampler_view *sv = sampler_views[i]; in vlVdpVideoSurfacePutBitsYCbCr()
Doutput.c428 struct pipe_sampler_view **sampler_views; in vlVdpOutputSurfacePutBitsYCbCr() local
468 sampler_views = vbuffer->get_sampler_view_planes(vbuffer); in vlVdpOutputSurfacePutBitsYCbCr()
469 if (!sampler_views) { in vlVdpOutputSurfacePutBitsYCbCr()
476 struct pipe_sampler_view *sv = sampler_views[i]; in vlVdpOutputSurfacePutBitsYCbCr()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_fs.c209 if (svga->curr.sampler_views[i]) { in make_fs_key()
211 assert(svga->curr.sampler_views[i]->texture); in make_fs_key()
212 key->tex[i].texture_target = svga->curr.sampler_views[i]->texture->target; in make_fs_key()
219 key->tex[i].swizzle_r = svga->curr.sampler_views[i]->swizzle_r; in make_fs_key()
220 key->tex[i].swizzle_g = svga->curr.sampler_views[i]->swizzle_g; in make_fs_key()
221 key->tex[i].swizzle_b = svga->curr.sampler_views[i]->swizzle_b; in make_fs_key()
222 key->tex[i].swizzle_a = svga->curr.sampler_views[i]->swizzle_a; in make_fs_key()
Dsvga_pipe_sampler.c245 assert(start + num <= Elements(svga->curr.sampler_views)); in svga_set_sampler_views()
253 !memcmp(svga->curr.sampler_views + start, views, in svga_set_sampler_views()
260 if (svga->curr.sampler_views[start + i] != views[i]) { in svga_set_sampler_views()
265 pipe_sampler_view_release(pipe, &svga->curr.sampler_views[start + i]); in svga_set_sampler_views()
266 pipe_sampler_view_reference(&svga->curr.sampler_views[start + i], in svga_set_sampler_views()
283 while (j > 0 && svga->curr.sampler_views[j - 1] == NULL) in svga_set_sampler_views()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_sampler.c184 assert(start + num <= Elements(softpipe->sampler_views[shader])); in softpipe_set_sampler_views()
188 !memcmp(softpipe->sampler_views[shader] + start, views, in softpipe_set_sampler_views()
197 pipe_sampler_view_reference(&softpipe->sampler_views[shader][start + i], in softpipe_set_sampler_views()
206 while (j > 0 && softpipe->sampler_views[shader][j - 1] == NULL) in softpipe_set_sampler_views()
214 softpipe->sampler_views[shader], in softpipe_set_sampler_views()
320 softpipe->sampler_views[shader][i], in reset_sampler_variants()
325 softpipe->sampler_views[shader][i]); in reset_sampler_variants()
Dsp_context.h82 struct pipe_sampler_view *sampler_views[PIPE_SHADER_TYPES][PIPE_MAX_SAMPLERS]; member
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_context.c72 for (i = 0; i < Elements(llvmpipe->sampler_views[0]); i++) { in llvmpipe_destroy()
73 pipe_sampler_view_reference(&llvmpipe->sampler_views[PIPE_SHADER_FRAGMENT][i], NULL); in llvmpipe_destroy()
76 for (i = 0; i < Elements(llvmpipe->sampler_views[0]); i++) { in llvmpipe_destroy()
77 pipe_sampler_view_reference(&llvmpipe->sampler_views[PIPE_SHADER_VERTEX][i], NULL); in llvmpipe_destroy()
Dlp_state_sampler.c149 assert(start + num <= Elements(llvmpipe->sampler_views[shader])); in llvmpipe_set_sampler_views()
153 !memcmp(llvmpipe->sampler_views[shader] + start, views, in llvmpipe_set_sampler_views()
162 pipe_sampler_view_reference(&llvmpipe->sampler_views[shader][start + i], in llvmpipe_set_sampler_views()
169 while (j > 0 && llvmpipe->sampler_views[shader][j - 1] == NULL) in llvmpipe_set_sampler_views()
177 llvmpipe->sampler_views[shader], in llvmpipe_set_sampler_views()
Dlp_draw_arrays.c89 lp->sampler_views[PIPE_SHADER_VERTEX]); in llvmpipe_draw_vbo()
Dlp_context.h78 struct pipe_sampler_view *sampler_views[PIPE_SHADER_TYPES][PIPE_MAX_SAMPLERS]; member
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_texture.c263 struct pipe_sampler_view **sampler_views, in update_textures() argument
294 pipe_sampler_view_reference(&(sampler_views[unit]), sampler_view); in update_textures()
307 sampler_views); in update_textures()
322 st->state.sampler_views[PIPE_SHADER_VERTEX], in update_vertex_textures()
337 st->state.sampler_views[PIPE_SHADER_FRAGMENT], in update_fragment_textures()
352 st->state.sampler_views[PIPE_SHADER_GEOMETRY], in update_geometry_textures()
Dst_context.c258 for (shader = 0; shader < Elements(st->state.sampler_views); shader++) { in st_destroy_context_priv()
259 for (i = 0; i < Elements(st->state.sampler_views[0]); i++) { in st_destroy_context_priv()
261 &st->state.sampler_views[shader][i]); in st_destroy_context_priv()
Dst_cb_bitmap.c497 struct pipe_sampler_view *sampler_views[PIPE_MAX_SAMPLERS]; in draw_bitmap_quad() local
500 memcpy(sampler_views, st->state.sampler_views[PIPE_SHADER_FRAGMENT], in draw_bitmap_quad()
501 sizeof(sampler_views)); in draw_bitmap_quad()
502 sampler_views[fpv->bitmap_sampler] = sv; in draw_bitmap_quad()
503 cso_set_sampler_views(cso, PIPE_SHADER_FRAGMENT, num, sampler_views); in draw_bitmap_quad()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_idct.c596 tex = buffer->sampler_views.individual.source->texture; in init_source()
624 pipe_sampler_view_reference(&buffer->sampler_views.individual.source, NULL); in cleanup_source()
636 tex = buffer->sampler_views.individual.intermediate->texture; in init_intermediate()
678 pipe_sampler_view_reference(&buffer->sampler_views.individual.intermediate, NULL); in cleanup_intermediate()
806 pipe_sampler_view_reference(&buffer->sampler_views.individual.matrix, idct->matrix); in vl_idct_init_buffer()
807 pipe_sampler_view_reference(&buffer->sampler_views.individual.source, source); in vl_idct_init_buffer()
808 pipe_sampler_view_reference(&buffer->sampler_views.individual.transpose, idct->transpose); in vl_idct_init_buffer()
809 pipe_sampler_view_reference(&buffer->sampler_views.individual.intermediate, intermediate); in vl_idct_init_buffer()
828 pipe_sampler_view_reference(&buffer->sampler_views.individual.matrix, NULL); in vl_idct_cleanup_buffer()
829 pipe_sampler_view_reference(&buffer->sampler_views.individual.transpose, NULL); in vl_idct_cleanup_buffer()
[all …]
Dvl_compositor.c557 struct pipe_resource *res = layer->sampler_views[0]->texture; in default_rect()
718 struct pipe_sampler_view **samplers = &layer->sampler_views[0]; in draw_layers()
788 pipe_sampler_view_reference(&s->layers[i].sampler_views[j], NULL); in vl_compositor_clear_layers()
876 struct pipe_sampler_view **sampler_views; in vl_compositor_set_buffer_layer() local
884 sampler_views = buffer->get_sampler_view_components(buffer); in vl_compositor_set_buffer_layer()
887 pipe_sampler_view_reference(&s->layers[layer].sampler_views[i], sampler_views[i]); in vl_compositor_set_buffer_layer()
942 pipe_sampler_view_reference(&s->layers[layer].sampler_views[0], indexes); in vl_compositor_set_palette_layer()
943 pipe_sampler_view_reference(&s->layers[layer].sampler_views[1], palette); in vl_compositor_set_palette_layer()
944 pipe_sampler_view_reference(&s->layers[layer].sampler_views[2], NULL); in vl_compositor_set_palette_layer()
970 pipe_sampler_view_reference(&s->layers[layer].sampler_views[0], rgba); in vl_compositor_set_rgba_layer()
[all …]
Dvl_idct.h75 } sampler_views; member
Dvl_compositor.h67 struct pipe_sampler_view *sampler_views[3]; member
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_pstipple.c90 struct pipe_sampler_view *sampler_views[PIPE_MAX_SAMPLERS]; member
546 pipe_sampler_view_reference(&pstip->state.sampler_views[pstip->fs->sampler_unit], in pstip_first_tri()
553 pstip->driver_set_sampler_views(pipe, num_samplers, pstip->state.sampler_views); in pstip_first_tri()
579 pstip->state.sampler_views); in pstip_flush()
598 pipe_sampler_view_reference(&pstip->state.sampler_views[i], NULL); in pstip_destroy()
734 pipe_sampler_view_reference(&pstip->state.sampler_views[i], views[i]); in pstip_set_sampler_views()
737 pipe_sampler_view_reference(&pstip->state.sampler_views[i], NULL); in pstip_set_sampler_views()
Ddraw_pipe_aaline.c110 struct pipe_sampler_view *sampler_views[PIPE_MAX_SAMPLERS]; member
711 pipe_sampler_view_reference(&aaline->state.sampler_views[aaline->fs->sampler_unit], in aaline_first_line()
716 aaline->driver_set_sampler_views(pipe, num_samplers, aaline->state.sampler_views); in aaline_first_line()
747 aaline->state.sampler_views); in aaline_flush()
775 pipe_sampler_view_reference(&aaline->state.sampler_views[i], NULL); in aaline_destroy()
919 pipe_sampler_view_reference(&aaline->state.sampler_views[i], views[i]); in aaline_set_sampler_views()
922 pipe_sampler_view_reference(&aaline->state.sampler_views[i], NULL); in aaline_set_sampler_views()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_state_derived.c764 if (state->sampler_views[i] && state->sampler_states[i]) { in r300_merge_textures_and_samplers()
767 view = state->sampler_views[i]; in r300_merge_textures_and_samplers()
928 (struct pipe_sampler_view**)&state->sampler_views[i], in r300_merge_textures_and_samplers()
976 if (state->sampler_views[i] && state->sampler_states[i]) { in r300_decompress_depth_textures()
977 tex = state->sampler_views[i]->base.texture; in r300_decompress_depth_textures()
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d11/
Dd3d11_context.h90 …struct pipe_sampler_view* sampler_views[D3D11_STAGES][D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT… member
176 memset(sampler_views, 0, sizeof(sampler_views)); in init_context()
361 sampler_views[s][start + i] = srvs[i] ? srvs[i]->object : 0; in xs_set_shader_resources()
501 while(num_shader_resource_views[s] && !sampler_views[s][num_shader_resource_views[s] - 1]) \ in update_stage()
509 pipe->set_vertex_sampler_views(pipe, num_views_to_bind, sampler_views[s]); in update_stage()
512 pipe->set_fragment_sampler_views(pipe, num_views_to_bind, sampler_views[s]); in update_stage()
515 pipe->set_geometry_sampler_views(pipe, num_views_to_bind, sampler_views[s]); in update_stage()
2006 sampler_views[s][i] = NULL; in UnbindShaderResourceView()

12