summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_lower_bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_lower_bitmap.c')
-rw-r--r--src/compiler/nir/nir_lower_bitmap.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/compiler/nir/nir_lower_bitmap.c b/src/compiler/nir/nir_lower_bitmap.c
index e182579a39..bd5c30f8dc 100644
--- a/src/compiler/nir/nir_lower_bitmap.c
+++ b/src/compiler/nir/nir_lower_bitmap.c
@@ -128,12 +128,7 @@ void
nir_lower_bitmap(nir_shader *shader,
const nir_lower_bitmap_options *options)
{
- nir_function *function;
-
assert(shader->stage == MESA_SHADER_FRAGMENT);
- function = nir_shader_get_entrypoint(shader);
-
- if (function->impl)
- lower_bitmap_impl(function->impl, options);
+ lower_bitmap_impl(nir_shader_get_entrypoint(shader), options);
}