OSDN Git Service

mesa: rework array/struct addressing code.
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 18 Jul 2008 20:44:01 +0000 (14:44 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 18 Jul 2008 20:46:42 +0000 (14:46 -0600)
commit7218626cf5ecc00fc7ef994253c20c9a2df35cc2
treeeaae6494ed8de6a058aa968bc8c2e33ba2b08efb
parenta4fd90e3255ea531f2fe0693f00f342f4610cae3
mesa: rework array/struct addressing code.

The slang_ir_storage type now has a pointer to parent storage to represent
storage of an array element within an array, or a field within a struct.
This fixes some problems related to addressing of fields/elements in non-
trivial cases.  More work to follow.
src/mesa/shader/slang/slang_builtin.c
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_emit.c
src/mesa/shader/slang/slang_emit.h
src/mesa/shader/slang/slang_ir.c
src/mesa/shader/slang/slang_ir.h
src/mesa/shader/slang/slang_vartable.c