Module: Mesa Branch: master Commit: ae5efaf2859db722cb8ef9be5ae5807068cbc1e5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae5efaf2859db722cb8ef9be5ae5807068cbc1e5
Author: Rob Clark <[email protected]> Date: Sat Mar 29 11:42:01 2014 -0400 freedreno/a3xx: little extra debug Catch things which should not happen in debug builds. Signed-off-by: Rob Clark <[email protected]> --- src/gallium/drivers/freedreno/a3xx/fd3_program.c | 2 ++ src/gallium/drivers/freedreno/a3xx/ir3_ra.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_program.c b/src/gallium/drivers/freedreno/a3xx/fd3_program.c index a84351a..09cadf8 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_program.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_program.c @@ -300,6 +300,8 @@ find_output(const struct fd3_shader_variant *so, fd3_semantic semantic) return find_output(so, fd3_semantic_name(TGSI_SEMANTIC_COLOR, idx)); } + assert(0); + return 0; } diff --git a/src/gallium/drivers/freedreno/a3xx/ir3_ra.c b/src/gallium/drivers/freedreno/a3xx/ir3_ra.c index 9d3a778..d926483 100644 --- a/src/gallium/drivers/freedreno/a3xx/ir3_ra.c +++ b/src/gallium/drivers/freedreno/a3xx/ir3_ra.c @@ -440,6 +440,9 @@ static void ra_assign_reg(struct ir3_visitor *v, reg->flags &= ~IR3_REG_SSA; reg->num = a->num & ~REG_HALF; + + assert(reg->num >= 0); + if (a->num & REG_HALF) { reg->flags |= IR3_REG_HALF; /* if dst reg being assigned, patch up the instr: */ _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
