pan/bi: Remove check for first_ubo_is_default_ubo
authorIcecream95 <ixn@disroot.org>
Fri, 12 Feb 2021 10:37:08 +0000 (23:37 +1300)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Feb 2021 21:48:22 +0000 (21:48 +0000)
It won't be set for OpenCL.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9105>

src/panfrost/bifrost/bifrost_compile.c

index 59151f785a946fd6f459834c0836d712fbf8f986..8325825dabf906dacd63016378526bb3002b27de 100644 (file)
@@ -542,11 +542,6 @@ bi_emit_store_vary(bi_builder *b, nir_intrinsic_instr *instr)
 static void
 bi_emit_load_ubo(bi_builder *b, nir_intrinsic_instr *instr)
 {
-        /* nir_lower_uniforms_to_ubo() should have been called, reserving
-         * UBO #0 for uniforms even if the shaders doesn't have uniforms.
-         */
-        assert(b->shader->nir->info.first_ubo_is_default_ubo);
-
         nir_src *offset = nir_get_io_offset_src(instr);
 
         bool offset_is_const = nir_src_is_const(*offset);