From 6a0d3b7696260f449a1d0c5222814568764e8110 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 10 Dec 2010 09:29:00 -0700 Subject: mesa: implement system values in program interpreter --- src/mesa/program/prog_execute.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/program/prog_execute.c') diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c index 1d97a077f52..c20347fe678 100644 --- a/src/mesa/program/prog_execute.c +++ b/src/mesa/program/prog_execute.c @@ -159,6 +159,10 @@ get_src_register_pointer(const struct prog_src_register *source, return ZeroVec; return prog->Parameters->ParameterValues[reg]; + case PROGRAM_SYSTEM_VALUE: + assert(reg < Elements(machine->SystemValues)); + return machine->SystemValues[reg]; + default: _mesa_problem(NULL, "Invalid src register file %d in get_src_register_pointer()", -- cgit v1.2.3