diff options
author | Zack Rusin <[email protected]> | 2009-06-23 19:12:46 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2009-07-06 17:21:37 -0400 |
commit | 124a6b1958c630ea049025e2b72547096fdc8f2c (patch) | |
tree | 2db08896a7c7270883aaf6252a920c3dd3c7d728 /src/gallium/auxiliary/cso_cache | |
parent | 5920b6b67988fc3977f43b39d8546cc20247bf31 (diff) |
gallium: rearrange some members to avoid memory holes/padding
plus it saves us a cacheline in the cso
Diffstat (limited to 'src/gallium/auxiliary/cso_cache')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index f388bf5d951..36c882acb75 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -55,14 +55,14 @@ struct cso_context { void *samplers[PIPE_MAX_SAMPLERS]; unsigned nr_samplers; - void *samplers_saved[PIPE_MAX_SAMPLERS]; unsigned nr_samplers_saved; + void *samplers_saved[PIPE_MAX_SAMPLERS]; struct pipe_texture *textures[PIPE_MAX_SAMPLERS]; uint nr_textures; - struct pipe_texture *textures_saved[PIPE_MAX_SAMPLERS]; uint nr_textures_saved; + struct pipe_texture *textures_saved[PIPE_MAX_SAMPLERS]; /** Current and saved state. * The saved state is used as a 1-deep stack. |