Home
last modified time | relevance | path

Searched refs:stage_tex (Results 1 – 4 of 4) sorted by relevance

/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_state.c530 struct vc4_texture_stateobj *stage_tex = vc4_get_stage_tex(vc4, shader); in vc4_sampler_states_bind() local
539 stage_tex->samplers[i] = hwcso[i]; in vc4_sampler_states_bind()
542 for (; i < stage_tex->num_samplers; i++) { in vc4_sampler_states_bind()
543 stage_tex->samplers[i] = NULL; in vc4_sampler_states_bind()
546 stage_tex->num_samplers = new_nr; in vc4_sampler_states_bind()
655 struct vc4_texture_stateobj *stage_tex = vc4_get_stage_tex(vc4, shader); in vc4_set_sampler_views() local
664 pipe_sampler_view_reference(&stage_tex->textures[i], views[i]); in vc4_set_sampler_views()
667 for (; i < stage_tex->num_textures; i++) { in vc4_set_sampler_views()
668 pipe_sampler_view_reference(&stage_tex->textures[i], NULL); in vc4_set_sampler_views()
671 stage_tex->num_textures = new_nr; in vc4_set_sampler_views()
Dvc4_draw.c115 struct vc4_texture_stateobj *stage_tex) in vc4_predraw_check_textures() argument
119 for (int i = 0; i < stage_tex->num_textures; i++) { in vc4_predraw_check_textures()
121 vc4_sampler_view(stage_tex->textures[i]); in vc4_predraw_check_textures()
/external/mesa3d/src/gallium/drivers/v3d/
Dv3dx_emit.c132 emit_one_texture(struct v3d_context *v3d, struct v3d_texture_stateobj *stage_tex, in emit_one_texture() argument
136 struct pipe_sampler_state *psampler = stage_tex->samplers[i]; in emit_one_texture()
138 struct pipe_sampler_view *psview = stage_tex->textures[i]; in emit_one_texture()
144 stage_tex->texture_state[i].offset = in emit_one_texture()
148 v3d_bo_set_reference(&stage_tex->texture_state[i].bo, in emit_one_texture()
256 emit_textures(struct v3d_context *v3d, struct v3d_texture_stateobj *stage_tex) in emit_textures() argument
258 for (int i = 0; i < stage_tex->num_textures; i++) { in emit_textures()
259 if (stage_tex->textures[i]) in emit_textures()
260 emit_one_texture(v3d, stage_tex, i); in emit_textures()
Dv3dx_state.c779 struct v3d_texture_stateobj *stage_tex = &v3d->tex[shader]; in v3d_sampler_states_bind() local
788 stage_tex->samplers[i] = hwcso[i]; in v3d_sampler_states_bind()
791 for (; i < stage_tex->num_samplers; i++) { in v3d_sampler_states_bind()
792 stage_tex->samplers[i] = NULL; in v3d_sampler_states_bind()
795 stage_tex->num_samplers = new_nr; in v3d_sampler_states_bind()
1159 struct v3d_texture_stateobj *stage_tex = &v3d->tex[shader]; in v3d_set_sampler_views() local
1168 pipe_sampler_view_reference(&stage_tex->textures[i], views[i]); in v3d_set_sampler_views()
1171 for (; i < stage_tex->num_textures; i++) { in v3d_set_sampler_views()
1172 pipe_sampler_view_reference(&stage_tex->textures[i], NULL); in v3d_set_sampler_views()
1175 stage_tex->num_textures = new_nr; in v3d_set_sampler_views()