hk: do not clamp txf for copy shaders

save a few instrs.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33682>
This commit is contained in:
Alyssa Rosenzweig
2025-02-03 15:42:41 -05:00
committed by Marge Bot
parent 0a43be6d4f
commit 5a122768b7

View File

@@ -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 =