st/mesa: save currently bound vertex samplers and sampler views in st_context

for st_draw_feedback.c

Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Marek Olšák
2019-11-27 15:10:27 -05:00
parent 226e7aee70
commit 2891c4b2e2
4 changed files with 11 additions and 3 deletions

View File

@@ -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);
}