pan/bi: Remove check for first_ubo_is_default_ubo

It won't be set for OpenCL.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9105>
This commit is contained in:
Icecream95 2021-02-12 23:37:08 +13:00 committed by Marge Bot
parent cd21f0e1c5
commit 71f849a292

View 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);