mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
0a43be6d4f
commit
5a122768b7
1 changed files with 4 additions and 0 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue