Searched refs:loop_index (Results 1 - 5 of 5) sorted by relevance

/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_lower_multiview.c243 nir_local_variable_create(entrypoint, glsl_uint_type(), "loop_index");
268 * if (loop_index >= view_count):
271 * view_index = active_indices[loop_index]
272 * pos_deref = &pos[loop_index]
276 * loop_index += 1
284 nir_ssa_def *loop_index = nir_load_deref(&b, loop_index_deref); local in function:nir_lower_multiview
285 nir_ssa_def *cmp = nir_ige(&b, loop_index, nir_imm_int(&b, view_count));
291 nir_load_deref(&b, nir_build_deref_array(&b, view_index_deref, loop_index));
293 nir_build_deref_array(&b, nir_build_deref_var(&b, pos_var), loop_index);
295 nir_store_deref(&b, loop_index_deref, nir_iadd_imm(&b, loop_index,
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/d3d12/
H A Dd3d12_gs_variant.cpp134 nir_ssa_def *loop_index; member in struct:emit_primitives_context
210 /* Temporary variable "loop_index" to loop over input vertices */
213 nir_local_variable_create(impl, glsl_uint_type(), "loop_index");
246 * if (loop_index >= 3)
251 emit_ctx->loop_index = nir_load_deref(b, emit_ctx->loop_index_deref);
252 nir_ssa_def *cmp = nir_ige(b, emit_ctx->loop_index,
260 nir_load_deref(b, nir_build_deref_array(b, nir_build_deref_var(b, edgeflag_var), emit_ctx->loop_index));
269 nir_ssa_def *is_edge = nir_ine(b, emit_ctx->loop_index, diagonal_vertex);
287 * loop_index++;
290 nir_store_deref(b, emit_ctx->loop_index_deref, nir_iadd_imm(b, emit_ctx->loop_index,
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/
H A Dlp_bld_nir_soa.c1079 LLVMValueRef loop_index = LLVMBuildAdd(builder, loop_offset, lp_build_const_int32(gallivm, c), ""); local in function:emit_load_mem
1082 LLVMValueRef ssbo_oob_cmp = lp_build_compare(gallivm, lp_elem_type(uint_bld->type), PIPE_FUNC_LESS, loop_index, ssbo_limit);
1095 scalar = lp_build_pointer_get(builder, mem_ptr2, loop_index);
1097 scalar = lp_build_pointer_get(builder, mem_ptr, loop_index);
1168 LLVMValueRef loop_index = LLVMBuildAdd(builder, loop_offset, lp_build_const_int32(gallivm, c), ""); local in function:emit_store_mem
1173 LLVMValueRef ssbo_oob_cmp = lp_build_compare(gallivm, lp_elem_type(uint_bld->type), PIPE_FUNC_LESS, loop_index, ssbo_limit);
1187 lp_build_pointer_set(builder, mem_ptr2, loop_index, value_ptr);
1189 lp_build_pointer_set(builder, mem_ptr, loop_index, value_ptr);
2306 LLVMValueRef loop_index = lp_build_add(uint_bld, offset, lp_build_const_int_vec(gallivm, uint_bld->type, c)); local in function:emit_load_scratch
2316 loop_index
2372 LLVMValueRef loop_index = lp_build_add(uint_bld, offset, lp_build_const_int_vec(gallivm, local in function:emit_store_scratch
[all...]
H A Dlp_bld_tgsi_soa.c3513 LLVMValueRef loop_index = lp_build_add(uint_bld, index, lp_build_const_int_vec(gallivm, uint_bld->type, chan_index)); local in function:load_emit
3517 LLVMValueRef ssbo_oob_cmp = lp_build_cmp(uint_bld, PIPE_FUNC_LESS, loop_index, ssbo_limit);
3528 loop_index = LLVMBuildExtractElement(gallivm->builder, loop_index,
3535 scalar = lp_build_pointer_get(builder, scalar_ptr, loop_index);
3632 LLVMValueRef loop_index = lp_build_add(uint_bld, index, lp_build_const_int_vec(gallivm, uint_bld->type, chan_index)); local in function:store_emit
3638 LLVMValueRef ssbo_oob_cmp = lp_build_cmp(uint_bld, PIPE_FUNC_LESS, loop_index, ssbo_limit);
3652 loop_index = LLVMBuildExtractElement(gallivm->builder, loop_index,
3659 lp_build_pointer_set(builder, scalar_ptr, loop_index, value_pt
[all...]
/xsrc/external/mit/MesaLib/dist/src/microsoft/compiler/
H A Ddxil_nir.c1004 nir_local_variable_create(b->impl, glsl_uint_type(), "loop_index");
1009 nir_ssa_def *loop_index = nir_load_deref(b, loop_index_deref); local in function:lower_memcpy_deref
1010 nir_ssa_def *cmp = nir_ige(b, loop_index, num_bytes);
1014 nir_ssa_def *val = memcpy_load_deref_elem(b, src_deref, loop_index);
1015 memcpy_store_deref_elem(b, dst_deref, loop_index, val);
1016 nir_store_deref(b, loop_index_deref, nir_iadd_imm(b, loop_index, 1), 1);

Completed in 19 milliseconds