mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 02:40:46 +02:00
tgsi: Keep version and processor info in iterate_ctx.
This commit is contained in:
parent
fef7f2b070
commit
57482e1549
2 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@ struct tgsi_iterate_context
|
|||
boolean
|
||||
(* epilog)(
|
||||
struct tgsi_iterate_context *ctx );
|
||||
|
||||
struct tgsi_processor processor;
|
||||
struct tgsi_version version;
|
||||
};
|
||||
|
||||
boolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue