aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_sampler.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-11-27 15:10:27 -0500
committerMarek Olšák <[email protected]>2019-12-09 21:09:28 -0500
commit2891c4b2e2cc45d2aba89b2260c46ea1fe75a505 (patch)
tree6649898ab0244bd90a5aa45f7fbfebda4187ad16 /src/mesa/state_tracker/st_atom_sampler.c
parent226e7aee70592a0eb4c8cc2f750999e90e59667f (diff)
st/mesa: save currently bound vertex samplers and sampler views in st_context
for st_draw_feedback.c Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom_sampler.c')
-rw-r--r--src/mesa/state_tracker/st_atom_sampler.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c
index ad25d7a8cc1..86113c93c49 100644
--- a/src/mesa/state_tracker/st_atom_sampler.c
+++ b/src/mesa/state_tracker/st_atom_sampler.c
@@ -344,7 +344,9 @@ st_update_vertex_samplers(struct st_context *st)
update_shader_samplers(st,
PIPE_SHADER_VERTEX,
- ctx->VertexProgram._Current, NULL, NULL);
+ ctx->VertexProgram._Current,
+ st->state.vert_samplers,
+ &st->state.num_vert_samplers);
}