Add literal_size field to slang_operation.
authorBrian <brian@yutani.localnet.net>
Sun, 4 Feb 2007 00:24:24 +0000 (17:24 -0700)
committerBrian <brian@yutani.localnet.net>
Sun, 4 Feb 2007 00:24:24 +0000 (17:24 -0700)
commit93b975a1d9fcc4a10987676f7368809522f27d71
treeebf408cfd8fbca10dea39eb594346e4fe03636b9
parent5ee684cba9b1f63090e184125e5890da4fc1d28c
Add literal_size field to slang_operation.

Used to track the number of components in a float/int/bool literal.
Helps with some typechecking things.
Fixes problems with calls such as "distance(v2, vec2(1.0, 2.0))"
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_compile.c
src/mesa/shader/slang/slang_compile_operation.c
src/mesa/shader/slang/slang_compile_operation.h
src/mesa/shader/slang/slang_simplify.c
src/mesa/shader/slang/slang_typeinfo.c