From 086cbe5da25305bf8d9b828bedefc6c7960019e5 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 10 Jan 2024 10:08:11 -0400 Subject: [PATCH] nir/lower_bitmap: return prog Signed-off-by: Alyssa Rosenzweig Reviewed-by: Konstantin Seurer Part-of: --- src/compiler/nir/nir.h | 2 +- src/compiler/nir/nir_lower_bitmap.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 5b352f1d122..1ed4307e490 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -6070,7 +6070,7 @@ typedef struct nir_lower_bitmap_options { bool swizzle_xxxx; } nir_lower_bitmap_options; -void nir_lower_bitmap(nir_shader *shader, const nir_lower_bitmap_options *options); +bool nir_lower_bitmap(nir_shader *shader, const nir_lower_bitmap_options *options); bool nir_lower_atomics_to_ssbo(nir_shader *shader, unsigned offset_align_state); diff --git a/src/compiler/nir/nir_lower_bitmap.c b/src/compiler/nir/nir_lower_bitmap.c index e05ac8a1ab7..df669d986c7 100644 --- a/src/compiler/nir/nir_lower_bitmap.c +++ b/src/compiler/nir/nir_lower_bitmap.c @@ -110,11 +110,12 @@ lower_bitmap_impl(nir_function_impl *impl, nir_metadata_dominance); } -void +bool nir_lower_bitmap(nir_shader *shader, const nir_lower_bitmap_options *options) { assert(shader->info.stage == MESA_SHADER_FRAGMENT); lower_bitmap_impl(nir_shader_get_entrypoint(shader), options); + return true; }