diff options
author | Brian Paul <[email protected]> | 2012-08-09 20:59:44 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-08-16 09:01:31 -0600 |
commit | bef196c7929606bb8c7e9c06fe83a90fc0d95f09 (patch) | |
tree | 39df5082e2c4e0e5e8a3df0561d4f271c690c297 /src/gallium/auxiliary/draw/draw_private.h | |
parent | df87fb59136eb302d72eac4b58fd8ffb25989ed5 (diff) |
draw: move tgsi-related state into a tgsi sub-struct
To better organize things a bit.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_private.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_private.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h index 9cede2108db..6a085be27fc 100644 --- a/src/gallium/auxiliary/draw/draw_private.h +++ b/src/gallium/auxiliary/draw/draw_private.h @@ -240,12 +240,14 @@ struct draw_context uint edgeflag_output; uint clipvertex_output; uint clipdistance_output[2]; - /** TGSI program interpreter runtime state */ - struct tgsi_exec_machine *machine; - uint num_samplers; - struct tgsi_sampler **samplers; + /** Fields for TGSI interpreter / execution */ + struct { + struct tgsi_exec_machine *machine; + struct tgsi_sampler **samplers; + uint num_samplers; + } tgsi; const void *aligned_constants[PIPE_MAX_CONSTANT_BUFFERS]; @@ -265,11 +267,14 @@ struct draw_context uint num_gs_outputs; /**< convenience, from geometry_shader */ uint position_output; - /** TGSI program interpreter runtime state */ - struct tgsi_exec_machine *machine; + /** Fields for TGSI interpreter / execution */ + struct { + struct tgsi_exec_machine *machine; + + struct tgsi_sampler **samplers; + uint num_samplers; + } tgsi; - uint num_samplers; - struct tgsi_sampler **samplers; } gs; /** Fragment shader state */ |