From 380cd70e5fe8d465b5f55db364b92252fa833889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 8 Jun 2011 01:12:02 +0200 Subject: [PATCH] ir_to_mesa: don't fail if IFs can't be flattened --- src/mesa/program/ir_to_mesa.cpp | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 0086997..8cd72f5 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2976,10 +2976,6 @@ get_mesa_program(struct gl_context *ctx, if (mesa_inst->SrcReg[src].RelAddr) prog->IndirectRegisterFiles |= 1 << mesa_inst->SrcReg[src].File; - if (options->EmitNoIfs && mesa_inst->Opcode == OPCODE_IF) { - fail_link(shader_program, "Couldn't flatten if statement\n"); - } - switch (mesa_inst->Opcode) { case OPCODE_BGNSUB: inst->function->inst = i; -- 1.7.4.1