diff options
author | Brian Paul <brianp@vmware.com> | 2014-03-14 14:49:33 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2014-09-22 16:56:23 -0600 |
commit | b16bb3f50f0d71f7e720c4feefcb86e15090d52f (patch) | |
tree | fc8288e79f28b9a348961e953b55622e6e6042ee /src/gallium/auxiliary/tgsi/tgsi_transform.h | |
parent | 2826212dc79b90fcb008b72e5c1fdc34e8a1ac71 (diff) | |
download | external_mesa3d-b16bb3f50f0d71f7e720c4feefcb86e15090d52f.zip external_mesa3d-b16bb3f50f0d71f7e720c4feefcb86e15090d52f.tar.gz external_mesa3d-b16bb3f50f0d71f7e720c4feefcb86e15090d52f.tar.bz2 |
tgsi: add prolog() method to tgsi_transform_context
Called when the user can insert new decls, instructions.
This could be used in a few places in the 'draw' module.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_transform.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_transform.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_transform.h b/src/gallium/auxiliary/tgsi/tgsi_transform.h index 8b96664..5ec0719 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_transform.h +++ b/src/gallium/auxiliary/tgsi/tgsi_transform.h @@ -57,6 +57,12 @@ struct tgsi_transform_context struct tgsi_full_property *prop); /** + * Called after last declaration, before first instruction. This is + * where the user might insert new declarations and/or instructions. + */ + void (*prolog)(struct tgsi_transform_context *ctx); + + /** * Called at end of input program to allow caller to append extra * instructions. Return number of tokens emitted. */ |