summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 43d7a6b1d59..5371a88b964 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 18729c2d1a8..f5bebf89b82 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