zink: store sampler and image_view counts
[mesa.git] / src / gallium / drivers / zink / zink_context.h
index 57c077da911dbe5210f05a76979fbebece53b3b4..d2cc752764ac1a195ada26fc909c70e42c1081ad 100644 (file)
@@ -97,7 +97,9 @@ struct zink_context {
    uint32_t buffers_enabled_mask;
 
    VkSampler samplers[PIPE_SHADER_TYPES][PIPE_MAX_SAMPLERS];
+   unsigned num_samplers[PIPE_SHADER_TYPES];
    struct pipe_sampler_view *image_views[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_SAMPLER_VIEWS];
+   unsigned num_image_views[PIPE_SHADER_TYPES];
 
    float blend_constants[4];