Home
last modified time | relevance | path

Searched refs:num_textures (Results 1 – 25 of 71) sorted by relevance

123

/external/mesa3d/src/mesa/state_tracker/
Dst_atom_texture.c116 unsigned num_textures = 0; in update_textures() local
158 num_textures = unit + 1; in update_textures()
244 num_textures = MAX2(num_textures, extra + 1); in update_textures()
249 num_textures, in update_textures()
251 st->state.num_sampler_views[shader_stage] = num_textures; in update_textures()
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_tex.c247 assert(nv50->num_textures[s] <= PIPE_MAX_SAMPLERS); in nv50_validate_tic()
248 for (i = 0; i < nv50->num_textures[s]; ++i) { in nv50_validate_tic()
306 for (; i < nv50->state.num_textures[s]; ++i) { in nv50_validate_tic()
310 if (nv50->num_textures[s]) { in nv50_validate_tic()
313 BEGIN_NI04(push, NV50_3D(CB_DATA(0)), nv50->num_textures[s] * 2); in nv50_validate_tic()
314 for (i = 0; i < nv50->num_textures[s]; i++) { in nv50_validate_tic()
328 nv50->state.num_textures[s] = nv50->num_textures[s]; in nv50_validate_tic()
Dnv50_context.c146 assert(nv50->num_textures[s] <= PIPE_MAX_SAMPLERS); in nv50_context_unreference_resources()
147 for (i = 0; i < nv50->num_textures[s]; ++i) in nv50_context_unreference_resources()
236 assert(nv50->num_textures[s] <= PIPE_MAX_SAMPLERS); in nv50_invalidate_resource_storage()
237 for (i = 0; i < nv50->num_textures[s]; ++i) { in nv50_invalidate_resource_storage()
Dnv50_surface.c839 unsigned num_textures[3]; member
1163 nv50->num_textures[0] = nv50->num_textures[1] = 0; in nv50_blit_set_src()
1164 nv50->num_textures[2] = 1; in nv50_blit_set_src()
1170 nv50->num_textures[2] = 2; in nv50_blit_set_src()
1267 ctx->saved.num_textures[s] = nv50->num_textures[s]; in nv50_blitctx_pre_blit()
1321 nv50->num_textures[s] = blit->saved.num_textures[s]; in nv50_blitctx_post_blit()
Dnv50_screen.h52 uint8_t num_textures[3]; member
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_texture.c86 tex->num_textures = util_last_bit(tex->valid_textures); in set_sampler_views()
88 for (i = 0; i < tex->num_textures; i++) { in set_sampler_views()
155 if (i < tex->num_textures && tex->textures[i]) { in fd_setup_border_colors()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv40_verttex.c86 for (; i < nv30->vertprog.num_textures; i++) { in nv40_verttex_set_sampler_views()
92 nv30->vertprog.num_textures = nr; in nv40_verttex_set_sampler_views()
Dnv30_context.h82 unsigned num_textures; member
95 unsigned num_textures; member
Dnv30_fragtex.c187 for (; i < nv30->fragprog.num_textures; i++) { in nv30_fragtex_set_sampler_views()
193 nv30->fragprog.num_textures = nr; in nv30_fragtex_set_sampler_views()
Dnv30_context.c128 for (i = 0; i < nv30->fragprog.num_textures; ++i) { in nv30_invalidate_resource_storage()
137 for (i = 0; i < nv30->vertprog.num_textures; ++i) { in nv30_invalidate_resource_storage()
/external/mesa3d/src/freedreno/ir3/
Dir3_image.c35 ir3_ibo_mapping_init(struct ir3_ibo_mapping *mapping, unsigned num_textures) in ir3_ibo_mapping_init() argument
39 mapping->tex_base = num_textures; in ir3_ibo_mapping_init()
Dir3_image.h33 void ir3_ibo_mapping_init(struct ir3_ibo_mapping *mapping, unsigned num_textures);
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_emit.c205 if ((i >= tex->num_textures) || !tex->textures[i]) in setup_border_colors()
371 if (tex->num_textures > 0) { in emit_textures()
372 unsigned num_textures = tex->num_textures; in emit_textures() local
375 OUT_PKT7(ring, CP_LOAD_STATE4, 3 + (12 * num_textures)); in emit_textures()
379 CP_LOAD_STATE4_0_NUM_UNIT(num_textures)); in emit_textures()
383 for (i = 0; i < tex->num_textures; i++) { in emit_textures()
808 OUT_RING(ring, ctx->tex[PIPE_SHADER_VERTEX].num_textures); in fd5_emit_state()
818 ~0 : ctx->tex[PIPE_SHADER_FRAGMENT].num_textures); in fd5_emit_state()
865 ~0 : ctx->tex[PIPE_SHADER_COMPUTE].num_textures); in fd5_emit_cs_state()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dcompiler.cc198 int num_textures = 0; in Compile() local
206 if (num_textures < gpu_info_.GetMaxImageArguments() && in Compile()
212 num_textures++; in Compile()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_shader.h122 unsigned num_textures:8; member
368 (const char *) &a->tex[a->num_textures] - (const char *) a; in svga_compile_keys_equal()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_emit.c193 if (tex->num_textures > 0) { in emit_textures()
195 OUT_PKT3(ring, CP_LOAD_STATE, 2 + (4 * tex->num_textures)); in emit_textures()
199 CP_LOAD_STATE_0_NUM_UNIT(tex->num_textures)); in emit_textures()
202 for (i = 0; i < tex->num_textures; i++) { in emit_textures()
215 OUT_PKT3(ring, CP_LOAD_STATE, 2 + (BASETABLE_SZ * tex->num_textures)); in emit_textures()
219 CP_LOAD_STATE_0_NUM_UNIT(BASETABLE_SZ * tex->num_textures)); in emit_textures()
222 for (i = 0; i < tex->num_textures; i++) { in emit_textures()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_program.c856 int num_textures = util_last_bit(prog->SamplersUsed); in brw_assign_common_binding_table_offsets() local
859 next_binding_table_offset += num_textures; in brw_assign_common_binding_table_offsets()
891 next_binding_table_offset += num_textures; in brw_assign_common_binding_table_offsets()
912 next_binding_table_offset += num_textures; in brw_assign_common_binding_table_offsets()
915 next_binding_table_offset += num_textures; in brw_assign_common_binding_table_offsets()
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_tex.c489 for (i = 0; i < nvc0->num_textures[s]; ++i) { in nvc0_validate_tic()
532 for (; i < nvc0->state.num_textures[s]; ++i) in nvc0_validate_tic()
535 nvc0->state.num_textures[s] = nvc0->num_textures[s]; in nvc0_validate_tic()
556 for (i = 0; i < nvc0->num_textures[s]; ++i) { in nve4_validate_tic()
590 for (; i < nvc0->state.num_textures[s]; ++i) { in nve4_validate_tic()
595 nvc0->state.num_textures[s] = nvc0->num_textures[s]; in nve4_validate_tic()
618 for (int i = 0; i < nvc0->num_textures[5]; i++) in nvc0_validate_textures()
850 for (int i = 0; i < nvc0->num_textures[s]; i++) in view_bound()
Dnvc0_surface.c811 unsigned num_textures[5]; member
974 nvc0->num_textures[s] = 0; in nvc0_blit_set_src()
975 nvc0->num_textures[4] = 1; in nvc0_blit_set_src()
981 nvc0->num_textures[4] = 2; in nvc0_blit_set_src()
1071 ctx->saved.num_textures[s] = nvc0->num_textures[s]; in nvc0_blitctx_pre_blit()
1073 nvc0->textures_dirty[s] = (1 << nvc0->num_textures[s]) - 1; in nvc0_blitctx_pre_blit()
1136 nvc0->num_textures[s] = blit->saved.num_textures[s]; in nvc0_blitctx_post_blit()
1138 nvc0->textures_dirty[s] = (1 << nvc0->num_textures[s]) - 1; in nvc0_blitctx_post_blit()
Dnve4_compute.c958 for (i = 0; i < nvc0->num_textures[s]; ++i) { in nve4_compute_validate_textures()
999 for (; i < nvc0->state.num_textures[s]; ++i) { in nve4_compute_validate_textures()
1013 nvc0->state.num_textures[s] = nvc0->num_textures[s]; in nve4_compute_validate_textures()
1017 for (int i = 0; i < nvc0->num_textures[s]; i++) in nve4_compute_validate_textures()
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_emit.c185 if (tex->num_textures > 0) { in emit_textures()
186 unsigned num_textures = tex->num_textures + v->astc_srgb.count; in emit_textures() local
189 OUT_PKT3(ring, CP_LOAD_STATE4, 2 + (8 * num_textures)); in emit_textures()
193 CP_LOAD_STATE4_0_NUM_UNIT(num_textures)); in emit_textures()
196 for (i = 0; i < tex->num_textures; i++) { in emit_textures()
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_emit.c104 if ((i >= tex->num_textures) || !tex->textures[i]) in setup_border_colors()
370 unsigned num_merged_textures = tex->num_textures; in fd6_emit_textures()
371 unsigned num_textures = tex->num_textures; in fd6_emit_textures() local
384 num_textures = v->image_mapping.tex_base; in fd6_emit_textures()
390 for (unsigned i = 0; i < num_textures; i++) { in fd6_emit_textures()
514 ctx->tex[type].num_textures > 0) { in fd6_emit_combined_textures()
/external/mesa3d/src/compiler/
Dshader_info.h124 uint8_t num_textures; member
/external/mesa3d/src/gallium/drivers/lima/
Dlima_state.c376 for (; i < lima_tex->num_textures; i++) { in lima_set_sampler_views()
380 lima_tex->num_textures = new_nr; in lima_set_sampler_views()
/external/mesa3d/src/gallium/drivers/panfrost/
Dpan_assemble.c386 state->shader.texture_count = s->info.num_textures; in panfrost_shader_compile()
387 state->shader.sampler_count = s->info.num_textures; in panfrost_shader_compile()

123