summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Krol <michal@tungstengraphics.com>2008-07-20 16:42:57 +0200
committerMichal Krol <michal@tungstengraphics.com>2008-07-20 16:42:57 +0200
commit57482e1549e131fa1aebd442a677a95909b22508 (patch)
treefc8afd99fcc3793576df7b204aee3f6c911bd0b6 /src
parentfef7f2b070ab797f78ebc210bb40a24685c6d4b7 (diff)
tgsi: Keep version and processor info in iterate_ctx.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/tgsi/util/tgsi_iterate.c3
-rw-r--r--src/gallium/auxiliary/tgsi/util/tgsi_iterate.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_iterate.c b/src/gallium/auxiliary/tgsi/util/tgsi_iterate.c
index 43d7a6b1d5..5371a88b96 100644
--- a/src/gallium/auxiliary/tgsi/util/tgsi_iterate.c
+++ b/src/gallium/auxiliary/tgsi/util/tgsi_iterate.c
@@ -38,6 +38,9 @@ tgsi_iterate_shader(
if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK)
return FALSE;
+ ctx->processor = parse.FullHeader.Processor;
+ ctx->version = parse.FullVersion.Version;
+
if (ctx->prolog)
if (!ctx->prolog( ctx ))
goto fail;
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_iterate.h b/src/gallium/auxiliary/tgsi/util/tgsi_iterate.h
index 18729c2d1a..f5bebf89b8 100644
--- a/src/gallium/auxiliary/tgsi/util/tgsi_iterate.h
+++ b/src/gallium/auxiliary/tgsi/util/tgsi_iterate.h
@@ -59,6 +59,9 @@ struct tgsi_iterate_context
boolean
(* epilog)(
struct tgsi_iterate_context *ctx );
+
+ struct tgsi_processor processor;
+ struct tgsi_version version;
};
boolean