From 2a62cbd24b02b0c222d9857ccf9a13e5e167f03a Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 20 Dec 2006 17:19:45 -0700 Subject: [PATCH] handle PROGRAM_UNIFORM, fix a _mesa_problem() call --- src/mesa/tnl/t_vb_arbprogram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c index ef7b9eaa6c4..906fd3f1e8a 100644 --- a/src/mesa/tnl/t_vb_arbprogram.c +++ b/src/mesa/tnl/t_vb_arbprogram.c @@ -859,6 +859,7 @@ static struct reg cvp_load_reg( struct compilation *cp, case PROGRAM_STATE_VAR: case PROGRAM_CONSTANT: + case PROGRAM_UNIFORM: reg = cvp_make_reg(FILE_STATE_PARAM, index); if (rel) return cvp_emit_rel(cp, reg, tmpreg); @@ -870,7 +871,7 @@ static struct reg cvp_load_reg( struct compilation *cp, case PROGRAM_WRITE_ONLY: case PROGRAM_ADDRESS: default: - _mesa_problem(NULL, "Invalid register file %d in cvp_load_reg()"); + _mesa_problem(NULL, "Invalid register file %d in cvp_load_reg()", file); assert(0); return tmpreg; /* can't happen */ } -- 2.30.2