/third_party/mesa3d/src/compiler/nir/tests/ |
D | load_store_vectorizer_tests.cpp | 212 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 …]
|
D | vars_tests.cpp | 1339 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 …]
|
D | builder_tests.cpp | 50 nir_variable *var = nir_variable_create(b->shader, nir_var_mem_ssbo, in store_test_val()
|
/third_party/mesa3d/src/compiler/spirv/tests/ |
D | avail_vis.cpp | 84 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/ |
D | nir_opt_access.c | 69 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()
|
D | nir_opt_load_store_vectorize.c | 77 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 …]
|
D | nir_opt_combine_stores.c | 290 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()
|
D | nir_opt_dead_write_vars.c | 124 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()
|
D | nir_lower_memory_model.c | 65 *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()
|
D | nir_opt_copy_prop_vars.c | 157 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()
|
D | nir_lower_amul.c | 264 } else if (var->data.mode == nir_var_mem_ssbo) { in nir_lower_amul()
|
D | nir_lower_atomics_to_ssbo.c | 232 ssbo = nir_variable_create(shader, nir_var_mem_ssbo, type, name); in nir_lower_atomics_to_ssbo()
|
D | nir_lower_io_to_scalar.c | 249 (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()
|
D | nir_opt_dead_cf.c | 254 if (!nir_deref_mode_may_be(deref, nir_var_mem_ssbo | in node_is_dead()
|
D | nir_deref.c | 447 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/ |
D | gl_nir_lower_buffers.c | 90 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()
|
D | gl_nir_linker.h | 52 nir_var_mem_ssbo | \
|
D | gl_nir_lower_atomics.c | 104 var->data.mode != nir_var_mem_ssbo && in lower_deref_instr()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_compute_transforms.cpp | 45 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/ |
D | dzn_nir.c | 54 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/ |
D | clc_compiler.c | 448 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()
|
D | clc_nir.c | 225 nir_variable_create(nir, nir_var_mem_ssbo, in add_printf_var()
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_nir.c | 925 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/ |
D | ir3_nir.c | 144 .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/ |
D | lvp_pipeline.c | 158 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()
|