From 7618fe1b484eecc2246202df1e53ee607c6d70c4 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 5 Mar 2020 11:32:06 +0100 Subject: [PATCH] aco: fix image load/store with lod and 1D images MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Make sure to add the lod value if non-null as the 2nd operand. Fixes dEQP-VK.image.load_store_lod.with_format.1d.* on all gens except GFX9. Fixes: 4d49a7ac737 ("aco: handle nir_intrinsic_image_deref_{load,store} with lod") Signed-off-by: Samuel Pitoiset Reviewed-by: Daniel Schürmann Reviewed-by: Samuel Iglesias Gonsálvez Tested-by: Marge Bot Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 414fd811a30..a60e57189e3 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -4314,9 +4314,6 @@ static Temp get_image_coords(isel_context *ctx, const nir_intrinsic_instr *instr } } - if (count == 1 && !gfx9_1d) - return emit_extract_vector(ctx, src0, 0, v1); - if (gfx9_1d) { coords[0] = emit_extract_vector(ctx, src0, 0, v1); coords.resize(coords.size() + 1); -- 2.30.2