diff options
author | Zack Rusin <[email protected]> | 2013-04-23 23:36:40 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-04-26 23:05:45 -0400 |
commit | 3093ac6f4fe8a4e57bcc0e82adef98806ec1e0d4 (patch) | |
tree | ec26553d9c18e376d107b5ab47d6fab97ace465c /src/gallium/auxiliary/tgsi/tgsi_ureg.c | |
parent | 53d36d5fb09cda39c8d3646cbccbd343b34bfb54 (diff) |
tgsi/ureg: Add a function to return the number of outputs
We already hold the variable, just weren't providing access
to it.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_ureg.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_ureg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c index 782f4495fa3..5a28b89b58e 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c @@ -1767,6 +1767,15 @@ no_ureg: } +const unsigned +ureg_get_nr_outputs( const struct ureg_program *ureg ) +{ + if (!ureg) + return 0; + return ureg->nr_outputs; +} + + void ureg_destroy( struct ureg_program *ureg ) { unsigned i; |