handle PROGRAM_UNIFORM, fix a _mesa_problem() call
authorBrian <brian@yutani.localnet.net>
Thu, 21 Dec 2006 00:19:45 +0000 (17:19 -0700)
committerBrian <brian@yutani.localnet.net>
Thu, 21 Dec 2006 00:19:45 +0000 (17:19 -0700)
src/mesa/tnl/t_vb_arbprogram.c

index ef7b9eaa6c46037127d8d761226186d2543ef5c8..906fd3f1e8aa1908c884efe466287608defc4e0b 100644 (file)
@@ -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 */
    }