Home
last modified time | relevance | path

Searched refs:sampler_view (Results 1 - 25 of 40) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_texture_state.c308 struct etna_sampler_view *sv = etna_sampler_view(ctx->sampler_view[x]); in etna_emit_ts_state()
314 struct etna_sampler_view *sv = etna_sampler_view(ctx->sampler_view[x]); in etna_emit_ts_state()
320 struct etna_sampler_view *sv = etna_sampler_view(ctx->sampler_view[x]); in etna_emit_ts_state()
326 struct etna_sampler_view *sv = etna_sampler_view(ctx->sampler_view[x]); in etna_emit_ts_state()
356 struct etna_sampler_view *sv = etna_sampler_view(ctx->sampler_view[x]); in etna_emit_new_texture_state()
370 sv = etna_sampler_view(ctx->sampler_view[x]); in etna_emit_new_texture_state()
377 sv = etna_sampler_view(ctx->sampler_view[x]); in etna_emit_new_texture_state()
394 sv = etna_sampler_view(ctx->sampler_view[x]); in etna_emit_new_texture_state()
410 struct etna_sampler_view *sv = etna_sampler_view(ctx->sampler_view[x]); in etna_emit_new_texture_state()
418 sv = etna_sampler_view(ctx->sampler_view[ in etna_emit_new_texture_state()
[all...]
H A Detnaviv_context.c194 key.tex_swizzle[i].swizzle_r = ctx->sampler_view[i]->swizzle_r; in etna_get_fs()
195 key.tex_swizzle[i].swizzle_g = ctx->sampler_view[i]->swizzle_g; in etna_get_fs()
196 key.tex_swizzle[i].swizzle_b = ctx->sampler_view[i]->swizzle_b; in etna_get_fs()
197 key.tex_swizzle[i].swizzle_a = ctx->sampler_view[i]->swizzle_a; in etna_get_fs()
355 if (ctx->sampler_view[i]) { in etna_draw_vbo()
357 resource_read(ctx, ctx->sampler_view[i]->texture); in etna_draw_vbo()
363 etna_update_sampler_source(ctx->sampler_view[i], i); in etna_draw_vbo()
H A Detnaviv_texture.c253 pipe_sampler_view_reference(&ctx->sampler_view[i], NULL); in set_sampler_views()
254 ctx->sampler_view[i] = view; in set_sampler_views()
256 pipe_sampler_view_reference(&ctx->sampler_view[i], view); in set_sampler_views()
266 pipe_sampler_view_reference(&ctx->sampler_view[i], NULL); in set_sampler_views()
H A Detnaviv_texture_desc.c264 struct etna_sampler_view_desc *sv = etna_sampler_view_desc(ctx->sampler_view[x]); in etna_emit_texture_desc()
289 struct etna_sampler_view_desc *sv = etna_sampler_view_desc(ctx->sampler_view[x]); in etna_emit_texture_desc()
315 struct etna_sampler_view_desc *sv = etna_sampler_view_desc(ctx->sampler_view[x]); in etna_emit_texture_desc()
H A Detnaviv_uniforms.c52 struct pipe_sampler_view *texture = ctx->sampler_view[index]; in get_texrect_scale()
H A Detnaviv_context.h171 struct pipe_sampler_view *sampler_view[PIPE_MAX_SAMPLERS]; member
/third_party/mesa3d/src/gallium/frontends/vdpau/
H A Dbitmap.c96 vlsurface->sampler_view = pipe->create_sampler_view(pipe, res, &sv_templ); in vlVdpBitmapSurfaceCreate()
100 if (!vlsurface->sampler_view) { in vlVdpBitmapSurfaceCreate()
117 pipe_sampler_view_reference(&vlsurface->sampler_view, NULL); in vlVdpBitmapSurfaceCreate()
138 pipe_sampler_view_reference(&vlsurface->sampler_view, NULL); in vlVdpBitmapSurfaceDestroy()
167 res = vlsurface->sampler_view->texture; in vlVdpBitmapSurfaceGetParameters()
201 dst_box = RectToPipeBox(destination_rect, vlsurface->sampler_view->texture); in vlVdpBitmapSurfacePutBitsNative()
202 pipe->texture_subdata(pipe, vlsurface->sampler_view->texture, 0, in vlVdpBitmapSurfacePutBitsNative()
H A Dmixer.c248 struct pipe_sampler_view *sampler_view, sv_templ; in vlVdpVideoMixerRender() local
296 vl_compositor_set_rgba_layer(&vmixer->cstate, compositor, layer++, bg->sampler_view, in vlVdpVideoMixerRender()
352 res_tmpl.format = dst->sampler_view->format; in vlVdpVideoMixerRender()
369 sampler_view = pipe->create_sampler_view(pipe, res, &sv_templ); in vlVdpVideoMixerRender()
379 sampler_view = dst->sampler_view; in vlVdpVideoMixerRender()
397 vl_compositor_set_rgba_layer(&vmixer->cstate, compositor, layer, src->sampler_view, in vlVdpVideoMixerRender()
409 sampler_view, dst->surface); in vlVdpVideoMixerRender()
417 sampler_view, surface_temp); in vlVdpVideoMixerRender()
419 pipe_sampler_view_reference(&sampler_view, NUL in vlVdpVideoMixerRender()
[all...]
H A Doutput.c106 vlsurface->sampler_view = pipe->create_sampler_view(pipe, res, &sv_templ); in vlVdpOutputSurfaceCreate()
107 if (!vlsurface->sampler_view) in vlVdpOutputSurfaceCreate()
131 pipe_sampler_view_reference(&vlsurface->sampler_view, NULL); in vlVdpOutputSurfaceCreate()
159 pipe_sampler_view_reference(&vlsurface->sampler_view, NULL); in vlVdpOutputSurfaceDestroy()
185 *rgba_format = PipeToFormatRGBA(vlsurface->sampler_view->texture->format); in vlVdpOutputSurfaceGetParameters()
186 *width = vlsurface->sampler_view->texture->width0; in vlVdpOutputSurfaceGetParameters()
187 *height = vlsurface->sampler_view->texture->height0; in vlVdpOutputSurfaceGetParameters()
222 res = vlsurface->sampler_view->texture; in vlVdpOutputSurfaceGetBitsNative()
266 dst_box = RectToPipeBox(destination_rect, vlsurface->sampler_view->texture); in vlVdpOutputSurfacePutBitsNative()
274 pipe->texture_subdata(pipe, vlsurface->sampler_view in vlVdpOutputSurfacePutBitsNative()
[all...]
H A Dvdpau_private.h434 struct pipe_sampler_view *sampler_view; member
443 struct pipe_sampler_view *sampler_view; member
/third_party/mesa3d/src/gallium/auxiliary/driver_trace/
H A Dtr_texture.h62 struct pipe_sampler_view *sampler_view; member
89 trace_sampler_view(struct pipe_sampler_view *sampler_view) in trace_sampler_view() argument
91 if (!sampler_view) in trace_sampler_view()
93 return (struct trace_sampler_view *)sampler_view; in trace_sampler_view()
/third_party/mesa3d/src/gallium/auxiliary/driver_noop/
H A Dnoop_state.c88 struct pipe_sampler_view *sampler_view = CALLOC_STRUCT(pipe_sampler_view); in noop_create_sampler_view() local
90 if (!sampler_view) in noop_create_sampler_view()
94 *sampler_view = *state; in noop_create_sampler_view()
95 sampler_view->texture = NULL; in noop_create_sampler_view()
96 pipe_resource_reference(&sampler_view->texture, texture); in noop_create_sampler_view()
97 pipe_reference_init(&sampler_view->reference, 1); in noop_create_sampler_view()
98 sampler_view->context = ctx; in noop_create_sampler_view()
99 return sampler_view; in noop_create_sampler_view()
/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_context.cpp103 pipe_sampler_view_reference(&ctx->pstipple.sampler_view, nullptr); in d3d12_context_destroy()
807 d3d12_init_sampler_view_descriptor(struct d3d12_sampler_view *sampler_view) in d3d12_init_sampler_view_descriptor() argument
809 struct pipe_sampler_view *state = &sampler_view->base; in d3d12_init_sampler_view_descriptor()
829 component_mapping((pipe_swizzle)sampler_view->swizzle_override_r, D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_0), in d3d12_init_sampler_view_descriptor()
830 component_mapping((pipe_swizzle)sampler_view->swizzle_override_g, D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_1), in d3d12_init_sampler_view_descriptor()
831 component_mapping((pipe_swizzle)sampler_view->swizzle_override_b, D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_2), in d3d12_init_sampler_view_descriptor()
832 component_mapping((pipe_swizzle)sampler_view->swizzle_override_a, D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_3) in d3d12_init_sampler_view_descriptor()
847 desc.Texture1D.MipLevels = sampler_view->mip_levels; in d3d12_init_sampler_view_descriptor()
852 desc.Texture1DArray.MipLevels = sampler_view->mip_levels; in d3d12_init_sampler_view_descriptor()
863 desc.Texture2D.MipLevels = sampler_view in d3d12_init_sampler_view_descriptor()
930 struct d3d12_sampler_view *sampler_view = CALLOC_STRUCT(d3d12_sampler_view); d3d12_create_sampler_view() local
[all...]
H A Dd3d12_context.h221 struct pipe_sampler_view *sampler_view; member
362 d3d12_init_sampler_view_descriptor(struct d3d12_sampler_view *sampler_view);
/third_party/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe_pstipple.c82 struct pipe_sampler_view *sampler_view; member
218 pstip->sampler_view); in pstip_first_tri()
286 if (pstip->sampler_view) { in pstip_destroy()
287 pipe_sampler_view_reference(&pstip->sampler_view, NULL); in pstip_destroy()
501 pstip->sampler_view = util_pstipple_create_sampler_view(pipe, in draw_install_pstipple_stage()
503 if (!pstip->sampler_view) in draw_install_pstipple_stage()
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_pipe_misc.c67 if (svga->polygon_stipple.sampler_view) { in svga_set_polygon_stipple()
69 &svga->polygon_stipple.sampler_view->base); in svga_set_polygon_stipple()
77 svga->polygon_stipple.sampler_view = in svga_set_polygon_stipple()
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_cb_readpixels.c157 /* Set up the sampler_view */ in try_pbo_readpixels()
160 struct pipe_sampler_view *sampler_view; in try_pbo_readpixels() local
188 sampler_view = pipe->create_sampler_view(pipe, texture, &templ); in try_pbo_readpixels()
189 if (sampler_view == NULL) in try_pbo_readpixels()
193 false, &sampler_view); in try_pbo_readpixels()
197 pipe_sampler_view_reference(&sampler_view, NULL); in try_pbo_readpixels()
/third_party/mesa3d/src/gallium/auxiliary/driver_rbug/
H A Drbug_objects.h75 struct pipe_sampler_view *sampler_view; member
153 return rbug_sampler_view(_sampler_view)->sampler_view; in rbug_sampler_view_unwrap()
H A Drbug_objects.c143 rb_view->sampler_view = view; in rbug_sampler_view_create()
155 pipe_sampler_view_reference(&rb_view->sampler_view, NULL); in rbug_sampler_view_destroy()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
H A DShader.cpp237 struct pipe_sampler_view *sampler_view = in SetShaderResources() local
240 sampler_views[Offset + i] = sampler_view; in SetShaderResources()
242 if (sampler_view) { in SetShaderResources()
1390 struct pipe_sampler_view *sampler_view = CastPipeShaderResourceView(hShaderResourceView);
1393 sampler_view->texture,
1394 sampler_view->format,
1395 sampler_view->u.tex.first_level,
1396 sampler_view->u.tex.last_level,
1397 sampler_view->u.tex.first_layer,
1398 sampler_view
[all...]
/third_party/mesa3d/src/gallium/drivers/zink/
H A Dzink_context.c503 struct zink_sampler_view *sampler_view = zink_sampler_view(ctx->sampler_views[stage][idx]); in get_imageview_for_binding() local
504 if (!sampler_view || !sampler_view->base.texture) in get_imageview_for_binding()
508 sampler_view->cube_array : in get_imageview_for_binding()
509 sampler_view->image_view; in get_imageview_for_binding()
527 struct zink_sampler_view *sampler_view = zink_sampler_view(ctx->sampler_views[stage][idx]); in get_bufferview_for_binding() local
528 return sampler_view->base.texture ? sampler_view->buffer_view : NULL; in get_bufferview_for_binding()
891 struct zink_sampler_view *sampler_view = CALLOC_STRUCT_CL(zink_sampler_view); in zink_create_sampler_view() local
894 sampler_view in zink_create_sampler_view()
3835 struct zink_sampler_view *sampler_view = zink_sampler_view(ctx->sampler_views[shader][slot]); rebind_tbo() local
3950 struct zink_sampler_view *sampler_view = zink_sampler_view(ctx->sampler_views[shader][slot]); rebind_buffer() local
[all...]
H A Dzink_descriptors.h255 zink_get_sampler_view_hash(struct zink_context *ctx, struct zink_sampler_view *sampler_view, bool is_buffer);
304 zink_get_sampler_view_hash(struct zink_context *ctx, struct zink_sampler_view *sampler_view, bool is_buffer);
H A Dzink_descriptors.c123 get_sampler_view_hash(const struct zink_sampler_view *sampler_view) in get_sampler_view_hash() argument
125 if (!sampler_view) in get_sampler_view_hash()
127 return sampler_view->base.target == PIPE_BUFFER ? in get_sampler_view_hash()
128 sampler_view->buffer_view->hash : sampler_view->image_view->hash; in get_sampler_view_hash()
141 zink_get_sampler_view_hash(struct zink_context *ctx, struct zink_sampler_view *sampler_view, bool is_buffer) in zink_get_sampler_view_hash() argument
143 return get_sampler_view_hash(sampler_view) ? get_sampler_view_hash(sampler_view) : in zink_get_sampler_view_hash()
1653 struct zink_sampler_view *sampler_view = zink_sampler_view(ctx->sampler_views[shader][idx + k]); in calc_descriptor_state_hash_sampler() local
1656 uint32_t val = zink_get_sampler_view_hash(ctx, sampler_view, is_buffe in calc_descriptor_state_hash_sampler()
[all...]
/third_party/mesa3d/src/gallium/frontends/xa/
H A Dxa_renderer.c593 struct pipe_sampler_view **sampler_view = r->bound_sampler_views; in renderer_texture() local
618 sampler_view[0]->texture, src_matrix); in renderer_texture()
624 sampler_view[0]->texture, mask_matrix); in renderer_texture()
634 sampler_view[0]->texture, sampler_view[1]->texture, in renderer_texture()
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
H A Dtgsi_ureg.c171 } sampler_view[PIPE_MAX_SHADER_SAMPLER_VIEWS]; member
759 if (ureg->sampler_view[i].index == index) { in ureg_DECL_sampler_view()
765 ureg->sampler_view[i].index = index; in ureg_DECL_sampler_view()
766 ureg->sampler_view[i].target = target; in ureg_DECL_sampler_view()
767 ureg->sampler_view[i].return_type_x = return_type_x; in ureg_DECL_sampler_view()
768 ureg->sampler_view[i].return_type_y = return_type_y; in ureg_DECL_sampler_view()
769 ureg->sampler_view[i].return_type_z = return_type_z; in ureg_DECL_sampler_view()
770 ureg->sampler_view[i].return_type_w = return_type_w; in ureg_DECL_sampler_view()
1981 ureg->sampler_view[i].index, in emit_decls()
1982 ureg->sampler_view[ in emit_decls()
[all...]

Completed in 29 milliseconds

12