Mesa (master): mesa: copy centroid/invariance/ precision info in parse_init_declarator()
Brian Paul
brianp at kemper.freedesktop.org
Mon Nov 24 16:53:54 UTC 2008
Module: Mesa
Branch: master
Commit: a2037137385671c0673d1de6eb1c36dbd3cd78f3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2037137385671c0673d1de6eb1c36dbd3cd78f3
Author: Brian Paul <brian.paul at tungstengraphics.com>
Date: Mon Nov 24 09:28:25 2008 -0700
mesa: copy centroid/invariance/precision info in parse_init_declarator()
---
src/mesa/shader/slang/slang_compile.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index 07c40ea..f684f6c 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -1799,8 +1799,11 @@ parse_init_declarator(slang_parse_ctx * C, slang_output_ctx * O,
RETURN0;
}
- /* copy the declarator qualifier type, parse the identifier */
+ /* copy the declarator type qualifier/etc info, parse the identifier */
var->type.qualifier = type->qualifier;
+ var->type.centroid = type->centroid;
+ var->type.precision = type->precision;
+ var->type.variant = type->variant;
var->a_name = a_name;
if (var->a_name == SLANG_ATOM_NULL)
RETURN0;
More information about the mesa-commit
mailing list