diff --git a/src/amd/compiler/instruction_selection/aco_select_nir_intrinsics.cpp b/src/amd/compiler/instruction_selection/aco_select_nir_intrinsics.cpp index 8417fd74714..132dbe5cb1c 100644 --- a/src/amd/compiler/instruction_selection/aco_select_nir_intrinsics.cpp +++ b/src/amd/compiler/instruction_selection/aco_select_nir_intrinsics.cpp @@ -3216,8 +3216,6 @@ visit_access_shared2_amd(isel_context* ctx, nir_intrinsic_instr* instr) Temp address = as_vgpr(ctx, get_ssa_temp(ctx, instr->src[is_store].ssa)); Builder bld(ctx->program, ctx->block); - assert(bld.program->gfx_level >= GFX7); - bool is64bit = (is_store ? instr->src[0].ssa->bit_size : instr->def.bit_size) == 64; uint8_t offset0 = nir_intrinsic_offset0(instr); uint8_t offset1 = nir_intrinsic_offset1(instr); diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 35e204ffea3..4d23189f692 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -583,10 +583,7 @@ radv_postprocess_nir(struct radv_device *device, const struct radv_graphics_stat .callback = ac_nir_mem_vectorize_callback, .cb_data = &(struct ac_nir_config){gfx_level, !use_llvm}, .robust_modes = 0, - /* On GFX6, read2/write2 is out-of-bounds if the offset register is negative, even if - * the final offset is not. - */ - .has_shared2_amd = gfx_level >= GFX7, + .has_shared2_amd = true, }; NIR_PASS(_, stage->nir, nir_opt_load_store_vectorize, &late_vectorize_opts); } diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 292d4428a41..60e79da6a36 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -960,10 +960,7 @@ static void run_late_optimization_and_lowering_passes(struct si_nir_shader_ctx * nir_var_shader_temp, .callback = ac_nir_mem_vectorize_callback, .cb_data = &(struct ac_nir_config){sel->screen->info.gfx_level, sel->info.base.use_aco_amd}, - /* On GFX6, read2/write2 is out-of-bounds if the offset register is negative, even if - * the final offset is not. - */ - .has_shared2_amd = sel->screen->info.gfx_level >= GFX7, + .has_shared2_amd = true, }); /* This must be done again if 8-bit or 16-bit buffer stores were vectorized. */