From 5a122768b7cbe3c6792ead424e53bd59ad8cfb40 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 3 Feb 2025 15:42:41 -0500 Subject: [PATCH] hk: do not clamp txf for copy shaders save a few instrs. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/vulkan/hk_cmd_meta.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/asahi/vulkan/hk_cmd_meta.c b/src/asahi/vulkan/hk_cmd_meta.c index 8fdc9afbccc..957308883f2 100644 --- a/src/asahi/vulkan/hk_cmd_meta.c +++ b/src/asahi/vulkan/hk_cmd_meta.c @@ -4,6 +4,7 @@ * Copyright 2022-2023 Collabora Ltd. and Red Hat Inc. * SPDX-License-Identifier: MIT */ +#include "asahi/compiler/agx_nir_texture.h" #include "util/format/u_format.h" #include "util/format/u_formats.h" #include "util/u_math.h" @@ -561,6 +562,9 @@ build_image_copy_shader(const struct vk_meta_image_copy_key *key) value1 = nir_txf_deref(b, deref, src_coord, NULL); } + nir_instr_as_tex(value1->parent_instr)->backend_flags = + AGX_TEXTURE_FLAG_NO_CLAMP; + /* Munge according to the implicit conversions so we get a bit copy */ if (key->src_format != key->dst_format) { nir_def *packed =