radeonsi: remove shader->input[] and output[] arrays and dependencies
[mesa.git] / src / gallium / drivers / radeon / radeon_setup_tgsi_llvm.c
index 119e613c5e55867a19af2c1c1563006751cbe1db..2fa23ed087c5d7996da3d28ffe4fa2c3f7824174 100644 (file)
@@ -275,7 +275,8 @@ static void emit_declaration(
        {
                unsigned idx;
                for (idx = decl->Range.First; idx <= decl->Range.Last; idx++) {
-                       ctx->load_input(ctx, idx, decl);
+                       if (ctx->load_input)
+                               ctx->load_input(ctx, idx, decl);
                }
        }
        break;