Home
last modified time | relevance | path

Searched refs:nir_var_mem_ssbo (Results 1 – 25 of 68) sorted by relevance

123

/third_party/mesa3d/src/compiler/nir/tests/
Dload_store_vectorizer_tests.cpp212 case nir_var_mem_ssbo: in create_indirect_load()
273 case nir_var_mem_ssbo: in create_indirect_store()
541 create_load(nir_var_mem_ssbo, 0, 0, 0x1); in TEST_F()
542 create_load(nir_var_mem_ssbo, 0, 4, 0x2); in TEST_F()
547 EXPECT_TRUE(run_vectorizer(nir_var_mem_ssbo)); in TEST_F()
562 create_indirect_load(nir_var_mem_ssbo, 0, index_base, 0x1); in TEST_F()
563 create_indirect_load(nir_var_mem_ssbo, 0, nir_iadd_imm(b, index_base, 4), 0x2); in TEST_F()
568 EXPECT_TRUE(run_vectorizer(nir_var_mem_ssbo)); in TEST_F()
584 create_indirect_load(nir_var_mem_ssbo, 0, index_base_prev, 0x1); in TEST_F()
585 create_indirect_load(nir_var_mem_ssbo, 0, index_base, 0x2); in TEST_F()
[all …]
Dvars_tests.cpp1339 nir_variable *ssbo0 = create_var(nir_var_mem_ssbo, ifc_type, "ssbo0"); in TEST_F()
1340 nir_variable *ssbo1 = create_var(nir_var_mem_ssbo, ifc_type, "ssbo1"); in TEST_F()
1342 nir_variable *out = create_var(nir_var_mem_ssbo, ifc_type, "out"); in TEST_F()
1386 nir_variable *ssbo0 = create_var(nir_var_mem_ssbo, ifc_type, "ssbo0"); in TEST_F()
1387 nir_variable *ssbo1 = create_var(nir_var_mem_ssbo, ifc_type, "ssbo1"); in TEST_F()
1388 nir_variable *out = create_var(nir_var_mem_ssbo, ifc_type, "out"); in TEST_F()
1426 nir_variable *ssbo_arr = create_var(nir_var_mem_ssbo, arr_ifc_type, in TEST_F()
1429 nir_variable *out = create_var(nir_var_mem_ssbo, ifc_type, "out"); in TEST_F()
1470 nir_variable *ssbo_arr = create_var(nir_var_mem_ssbo, arr_ifc_type, in TEST_F()
1473 nir_variable *out = create_var(nir_var_mem_ssbo, ifc_type, "out"); in TEST_F()
[all …]
Dbuilder_tests.cpp50 nir_variable *var = nir_variable_create(b->shader, nir_var_mem_ssbo, in store_test_val()
/third_party/mesa3d/src/compiler/spirv/tests/
Davail_vis.cpp84 EXPECT_NE(nir_intrinsic_memory_modes(intrinsic) & nir_var_mem_ssbo, 0); in TEST_F()
148 EXPECT_NE(nir_intrinsic_memory_modes(intrinsic) & nir_var_mem_ssbo, 0); in TEST_F()
214 EXPECT_NE(nir_intrinsic_memory_modes(first) & nir_var_mem_ssbo, 0); in TEST_F()
219 EXPECT_NE(nir_intrinsic_memory_modes(second) & nir_var_mem_ssbo, 0); in TEST_F()
286 EXPECT_NE(nir_intrinsic_memory_modes(first) & nir_var_mem_ssbo, 0); in TEST_F()
291 EXPECT_NE(nir_intrinsic_memory_modes(second) & nir_var_mem_ssbo, 0); in TEST_F()
354 EXPECT_NE(nir_intrinsic_memory_modes(intrinsic) & nir_var_mem_ssbo, 0); in TEST_F()
417 EXPECT_NE(nir_intrinsic_memory_modes(intrinsic) & nir_var_mem_ssbo, 0); in TEST_F()
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_access.c69 nir_foreach_variable_with_modes(possible_var, state->shader, nir_var_mem_ssbo) { in gather_buffer_access()
172 if (!nir_deref_mode_may_be(deref, nir_var_mem_ssbo | nir_var_mem_global)) in gather_intrinsic()
175 bool ssbo = nir_deref_mode_is(deref, nir_var_mem_ssbo); in gather_intrinsic()
191 if (var->data.mode != nir_var_mem_ssbo && in process_variable()
201 bool is_buffer = var->data.mode == nir_var_mem_ssbo || in process_variable()
275 else if (nir_deref_mode_is(nir_src_as_deref(instr->src[0]), nir_var_mem_ssbo)) in process_intrinsic()
357 nir_var_mem_ssbo | in nir_opt_access()
Dnir_opt_load_store_vectorize.c77 LOAD(nir_var_mem_ssbo, ssbo, 0, 1, -1) in get_info()
78 STORE(nir_var_mem_ssbo, ssbo, 1, 2, -1, 0) in get_info()
87 ATOMIC(nir_var_mem_ssbo, ssbo, add, 0, 1, -1, 2) in get_info()
88 ATOMIC(nir_var_mem_ssbo, ssbo, imin, 0, 1, -1, 2) in get_info()
89 ATOMIC(nir_var_mem_ssbo, ssbo, umin, 0, 1, -1, 2) in get_info()
90 ATOMIC(nir_var_mem_ssbo, ssbo, imax, 0, 1, -1, 2) in get_info()
91 ATOMIC(nir_var_mem_ssbo, ssbo, umax, 0, 1, -1, 2) in get_info()
92 ATOMIC(nir_var_mem_ssbo, ssbo, and, 0, 1, -1, 2) in get_info()
93 ATOMIC(nir_var_mem_ssbo, ssbo, or, 0, 1, -1, 2) in get_info()
94 ATOMIC(nir_var_mem_ssbo, ssbo, xor, 0, 1, -1, 2) in get_info()
[all …]
Dnir_opt_combine_stores.c290 nir_var_mem_ssbo | in combine_stores_block()
321 nir_var_mem_ssbo | in combine_stores_block()
327 combine_stores_with_modes(state, nir_var_mem_ssbo | in combine_stores_block()
352 combine_stores_with_modes(state, nir_var_mem_ssbo | in combine_stores_block()
360 combine_stores_with_modes(state, nir_var_mem_ssbo | in combine_stores_block()
Dnir_opt_dead_write_vars.c124 nir_var_mem_ssbo | in remove_dead_write_vars_local()
139 nir_var_mem_ssbo | in remove_dead_write_vars_local()
146 clear_unused_for_modes(&unused_writes, nir_var_mem_ssbo | in remove_dead_write_vars_local()
Dnir_lower_memory_model.c65 *modes = nir_var_mem_ssbo; in get_intrinsic_info()
69 *modes = nir_var_mem_ssbo; in get_intrinsic_info()
86 *modes = nir_var_mem_ssbo; in get_intrinsic_info()
Dnir_opt_copy_prop_vars.c157 nir_var_mem_ssbo | in gather_vars_written()
172 nir_var_mem_ssbo | in gather_vars_written()
208 written->modes |= nir_var_mem_ssbo | in gather_vars_written()
216 written->modes |= nir_var_mem_ssbo | in gather_vars_written()
844 nir_var_mem_ssbo | in copy_prop_vars_block()
861 nir_var_mem_ssbo | in copy_prop_vars_block()
869 apply_barrier_for_modes(copies, nir_var_mem_ssbo | in copy_prop_vars_block()
900 apply_barrier_for_modes(copies, nir_var_mem_ssbo | in copy_prop_vars_block()
908 apply_barrier_for_modes(copies, nir_var_mem_ssbo | in copy_prop_vars_block()
Dnir_lower_amul.c264 } else if (var->data.mode == nir_var_mem_ssbo) { in nir_lower_amul()
Dnir_lower_atomics_to_ssbo.c232 ssbo = nir_variable_create(shader, nir_var_mem_ssbo, type, name); in nir_lower_atomics_to_ssbo()
Dnir_lower_io_to_scalar.c249 (intr->intrinsic == nir_intrinsic_load_ssbo && (mask & nir_var_mem_ssbo)) || in nir_lower_io_to_scalar_instr()
262 if ((intr->intrinsic == nir_intrinsic_store_ssbo && (mask & nir_var_mem_ssbo)) || in nir_lower_io_to_scalar_instr()
Dnir_opt_dead_cf.c254 if (!nir_deref_mode_may_be(deref, nir_var_mem_ssbo | in node_is_dead()
Dnir_deref.c447 if ((a & (nir_var_mem_ssbo | nir_var_mem_global)) && in modes_may_alias()
448 (b & (nir_var_mem_ssbo | nir_var_mem_global))) in modes_may_alias()
610 case nir_var_mem_ssbo: { in nir_compare_deref_paths()
/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_lower_buffers.c90 assert(nir_deref_mode_is(deref, nir_var_mem_ssbo)); in get_block_array_index()
136 assert(var->data.mode == nir_var_mem_ssbo); in get_block_index_offset()
194 nir_var_mem_ssbo)) in lower_buffer_interface_derefs_impl()
254 nir_var_mem_ssbo)) in lower_buffer_interface_derefs_impl()
280 nir_var_mem_ssbo)) in lower_buffer_interface_derefs_impl()
336 nir_foreach_variable_with_modes(var, shader, nir_var_mem_ubo | nir_var_mem_ssbo) { in gl_nir_lower_buffers()
356 nir_lower_explicit_io(shader, nir_var_mem_ubo | nir_var_mem_ssbo, in gl_nir_lower_buffers()
Dgl_nir_linker.h52 nir_var_mem_ssbo | \
Dgl_nir_lower_atomics.c104 var->data.mode != nir_var_mem_ssbo && in lower_deref_instr()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_compute_transforms.cpp45 nir_variable *input_ssbo = nir_variable_create(b.shader, nir_var_mem_ssbo, in get_indirect_draw_base_vertex_transform()
47 nir_variable *output_ssbo = nir_variable_create(b.shader, nir_var_mem_ssbo, in get_indirect_draw_base_vertex_transform()
108 nir_variable *output_so_data_var = nir_variable_create(b.shader, nir_var_mem_ssbo, in get_fake_so_buffer_copy_back()
110 …nir_variable *input_so_data_var = nir_variable_create(b.shader, nir_var_mem_ssbo, output_so_data_v… in get_fake_so_buffer_copy_back()
160 …nir_variable_create(b.shader, nir_var_mem_ssbo, glsl_array_type(glsl_uint_type(), 0, 0), "fake_so"… in get_fake_so_buffer_vertex_count()
163 nir_variable *real_so_var = nir_variable_create(b.shader, nir_var_mem_ssbo, in get_fake_so_buffer_vertex_count()
193 nir_variable_create(b.shader, nir_var_mem_ssbo, glsl_array_type(glsl_uint_type(), 0, 0), "ssbo"); in get_draw_auto()
/third_party/mesa3d/src/microsoft/vulkan/
Ddzn_nir.c54 assert(mode == nir_var_mem_ubo || mode == nir_var_mem_ssbo); in dzn_nir_create_bo_desc()
131 dzn_nir_create_bo_desc(&b, nir_var_mem_ssbo, 0, 1, "draw_buf", ACCESS_NON_WRITEABLE); in dzn_nir_indirect_draw_shader()
133 dzn_nir_create_bo_desc(&b, nir_var_mem_ssbo, 0, 2, "exec_buf", ACCESS_NON_READABLE); in dzn_nir_indirect_draw_shader()
156 dzn_nir_create_bo_desc(&b, nir_var_mem_ssbo, 0, 3, "count_buf", ACCESS_NON_WRITEABLE); in dzn_nir_indirect_draw_shader()
207 dzn_nir_create_bo_desc(&b, nir_var_mem_ssbo, 0, 4, in dzn_nir_indirect_draw_shader()
321 dzn_nir_create_bo_desc(&b, nir_var_mem_ssbo, 0, 1, in dzn_nir_triangle_fan_prim_restart_rewrite_index_shader()
324 dzn_nir_create_bo_desc(&b, nir_var_mem_ssbo, 0, 2, in dzn_nir_triangle_fan_prim_restart_rewrite_index_shader()
327 dzn_nir_create_bo_desc(&b, nir_var_mem_ssbo, 0, 3, in dzn_nir_triangle_fan_prim_restart_rewrite_index_shader()
484 dzn_nir_create_bo_desc(&b, nir_var_mem_ssbo, 0, 1, in dzn_nir_triangle_fan_rewrite_index_shader()
490 dzn_nir_create_bo_desc(&b, nir_var_mem_ssbo, 0, 2, in dzn_nir_triangle_fan_rewrite_index_shader()
/third_party/mesa3d/src/microsoft/clc/
Dclc_compiler.c448 var->data.mode = nir_var_mem_ssbo; in clc_lower_constant_to_ssbo()
474 deref->modes = nir_var_mem_ssbo; in clc_lower_constant_to_ssbo()
499 deref->modes = nir_var_mem_ssbo; in clc_lower_global_to_ssbo()
1035 NIR_PASS_V(nir, nir_lower_explicit_io, nir_var_mem_ssbo, in clc_spirv_to_dxil()
1164 nir_foreach_variable_with_modes(var, nir, nir_var_mem_ssbo) { in clc_spirv_to_dxil()
Dclc_nir.c225 nir_variable_create(nir, nir_var_mem_ssbo, in add_printf_var()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir.c925 nir_var_mem_ubo | nir_var_mem_ssbo, in brw_preprocess_nir()
1093 .modes = nir_var_mem_ubo | nir_var_mem_ssbo | in brw_vectorize_lower_mem_access()
1101 options.robust_modes = nir_var_mem_ubo | nir_var_mem_ssbo | in brw_vectorize_lower_mem_access()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir.c144 .modes = nir_var_mem_ubo | nir_var_mem_ssbo, in ir3_optimize_loop()
146 .robust_modes = compiler->robust_buffer_access2 ? nir_var_mem_ubo | nir_var_mem_ssbo: 0, in ir3_optimize_loop()
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_pipeline.c158 if (deref->modes != nir_var_mem_ssbo) in set_buffer_access()
165 if (var->data.mode != nir_var_mem_ssbo) in set_buffer_access()
482 nir_var_mem_ubo | nir_var_mem_ssbo, in lvp_shader_compile_to_ir()

123