diff options
author | Brian Paul <brianp@vmware.com> | 2012-08-09 20:59:44 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-08-16 09:01:31 -0600 |
commit | 6c8a13215813841703e7c2efa233e8d4cf517dfd (patch) | |
tree | f4dfc28372595c1fbb7f5680effb523bf59e3834 /src/mesa/state_tracker/st_atom_texture.c | |
parent | cab2fed135bc1edf7b65ddca3236020638427061 (diff) | |
download | external_mesa3d-6c8a13215813841703e7c2efa233e8d4cf517dfd.zip external_mesa3d-6c8a13215813841703e7c2efa233e8d4cf517dfd.tar.gz external_mesa3d-6c8a13215813841703e7c2efa233e8d4cf517dfd.tar.bz2 |
st/mesa: combine vertex/fragment sampler state in arrays
As with other recent changes, put the vertex and fragment sampler state
into arrays indexed by the shader type. This will let us easily add
support for other types of shaders in the future.
Diffstat (limited to 'src/mesa/state_tracker/st_atom_texture.c')
-rw-r--r-- | src/mesa/state_tracker/st_atom_texture.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c index e88675d..5604b87 100644 --- a/src/mesa/state_tracker/st_atom_texture.c +++ b/src/mesa/state_tracker/st_atom_texture.c @@ -312,8 +312,8 @@ update_vertex_textures(struct st_context *st) PIPE_SHADER_VERTEX, &ctx->VertexProgram._Current->Base, ctx->Const.MaxVertexTextureImageUnits, - st->state.vertex_sampler_views, - &st->state.num_vertex_textures); + st->state.sampler_views[PIPE_SHADER_VERTEX], + &st->state.num_sampler_views[PIPE_SHADER_VERTEX]); } } @@ -327,8 +327,8 @@ update_fragment_textures(struct st_context *st) PIPE_SHADER_FRAGMENT, &ctx->FragmentProgram._Current->Base, ctx->Const.MaxTextureImageUnits, - st->state.fragment_sampler_views, - &st->state.num_fragment_textures); + st->state.sampler_views[PIPE_SHADER_FRAGMENT], + &st->state.num_sampler_views[PIPE_SHADER_FRAGMENT]); } |