From 09fa418b7dd338254212fc2e2ca8edfba952a24d Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 19 Feb 2025 11:35:33 +0100 Subject: [PATCH] nir: Add bool return value to nir_lower_texcoord_replace(..) Signed-off-by: Christian Gmeiner Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir.h | 2 +- src/compiler/nir/nir_lower_texcoord_replace.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index e8938ee8230..87a10b4ce10 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -5802,7 +5802,7 @@ bool nir_legalize_16bit_sampler_srcs(nir_shader *nir, bool nir_lower_point_size(nir_shader *shader, float min, float max); -void nir_lower_texcoord_replace(nir_shader *s, unsigned coord_replace, +bool nir_lower_texcoord_replace(nir_shader *s, unsigned coord_replace, bool point_coord_is_sysval, bool yinvert); bool nir_lower_texcoord_replace_late(nir_shader *s, unsigned coord_replace, diff --git a/src/compiler/nir/nir_lower_texcoord_replace.c b/src/compiler/nir/nir_lower_texcoord_replace.c index 438eeb7bed5..5e98f6435e8 100644 --- a/src/compiler/nir/nir_lower_texcoord_replace.c +++ b/src/compiler/nir/nir_lower_texcoord_replace.c @@ -127,7 +127,7 @@ nir_lower_texcoord_replace_impl(nir_function_impl *impl, nir_metadata_preserve(impl, nir_metadata_control_flow); } -void +bool nir_lower_texcoord_replace(nir_shader *s, unsigned coord_replace, bool point_coord_is_sysval, bool yinvert) { @@ -138,4 +138,6 @@ nir_lower_texcoord_replace(nir_shader *s, unsigned coord_replace, nir_lower_texcoord_replace_impl(impl, coord_replace, point_coord_is_sysval, yinvert); } + + return true; }