tgsi: Keep version and processor info in iterate_ctx.

This commit is contained in:
Michal Krol 2008-07-20 16:42:57 +02:00
parent fef7f2b070
commit 57482e1549
2 changed files with 6 additions and 0 deletions

View file

@ -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;

View file

@ -59,6 +59,9 @@ struct tgsi_iterate_context
boolean
(* epilog)(
struct tgsi_iterate_context *ctx );
struct tgsi_processor processor;
struct tgsi_version version;
};
boolean