mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 00:10:33 +01:00
gallivm: Replace predicate assertion failure with warning message.
This commit is contained in:
parent
d44c8ee568
commit
e27983bc08
1 changed files with 6 additions and 8 deletions
|
|
@ -579,7 +579,6 @@ emit_store(
|
|||
|
||||
case TGSI_FILE_PREDICATE:
|
||||
/* FIXME */
|
||||
assert(0);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
@ -729,7 +728,7 @@ emit_kilp(struct lp_build_tgsi_soa_context *bld,
|
|||
lp_build_mask_update(bld->mask, mask);
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
emit_declaration(
|
||||
struct lp_build_tgsi_soa_context *bld,
|
||||
const struct tgsi_full_declaration *decl)
|
||||
|
|
@ -767,13 +766,15 @@ emit_declaration(
|
|||
vec_type, "");
|
||||
break;
|
||||
|
||||
case TGSI_FILE_PREDICATE:
|
||||
_debug_printf("warning: predicate registers not yet implemented\n");
|
||||
break;
|
||||
|
||||
default:
|
||||
/* don't need to declare other vars */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1755,10 +1756,7 @@ lp_build_tgsi_soa(LLVMBuilderRef builder,
|
|||
switch( parse.FullToken.Token.Type ) {
|
||||
case TGSI_TOKEN_TYPE_DECLARATION:
|
||||
/* Inputs already interpolated */
|
||||
{
|
||||
if (!emit_declaration( &bld, &parse.FullToken.FullDeclaration ))
|
||||
_debug_printf("warning: failed to define LLVM variable\n");
|
||||
}
|
||||
emit_declaration( &bld, &parse.FullToken.FullDeclaration );
|
||||
break;
|
||||
|
||||
case TGSI_TOKEN_TYPE_INSTRUCTION:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue