From 2891c4b2e2cc45d2aba89b2260c46ea1fe75a505 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 27 Nov 2019 15:10:27 -0500 Subject: st/mesa: save currently bound vertex samplers and sampler views in st_context for st_draw_feedback.c Reviewed-by: Dave Airlie --- src/mesa/state_tracker/st_context.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/state_tracker/st_context.h') diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index 3778bbd4528..bf77f3e7757 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracker/st_context.h @@ -188,8 +188,11 @@ struct st_context struct pipe_blend_state blend; struct pipe_depth_stencil_alpha_state depth_stencil; struct pipe_rasterizer_state rasterizer; + struct pipe_sampler_state vert_samplers[PIPE_MAX_SAMPLERS]; struct pipe_sampler_state frag_samplers[PIPE_MAX_SAMPLERS]; + GLuint num_vert_samplers; GLuint num_frag_samplers; + struct pipe_sampler_view *vert_sampler_views[PIPE_MAX_SAMPLERS]; struct pipe_sampler_view *frag_sampler_views[PIPE_MAX_SAMPLERS]; GLuint num_sampler_views[PIPE_SHADER_TYPES]; struct pipe_clip_state clip; -- cgit v1.2.3