diff options
author | Michal Krol <[email protected]> | 2008-07-20 16:42:57 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2008-07-20 16:42:57 +0200 |
commit | 57482e1549e131fa1aebd442a677a95909b22508 (patch) | |
tree | fc8afd99fcc3793576df7b204aee3f6c911bd0b6 /src | |
parent | fef7f2b070ab797f78ebc210bb40a24685c6d4b7 (diff) |
tgsi: Keep version and processor info in iterate_ctx.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/tgsi/util/tgsi_iterate.c | 3 | ||||
-rw-r--r-- | src/gallium/auxiliary/tgsi/util/tgsi_iterate.h | 3 |
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 |