diff options
author | Erik Faye-Lund <[email protected]> | 2019-07-10 17:10:49 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:46 +0000 |
commit | d29cc33a9be45c7bccc439dfffa05846482976e4 (patch) | |
tree | 7898fa66f46a873f4d94055ff8879b9303ff4b78 /src/gallium/drivers/zink/zink_context.c | |
parent | 8e5fe441bd3f5c524cadff06801ab99fe1e810c2 (diff) |
zink: store sampler and image_view counts
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/zink/zink_context.c')
-rw-r--r-- | src/gallium/drivers/zink/zink_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 884455c7c35..b95a9a139ae 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -180,6 +180,7 @@ zink_bind_sampler_states(struct pipe_context *pctx, struct zink_context *ctx = zink_context(pctx); for (unsigned i = 0; i < num_samplers; ++i) ctx->samplers[shader][start_slot + i] = (VkSampler)samplers[i]; + ctx->num_samplers[shader] = start_slot + num_samplers; } static void @@ -444,6 +445,7 @@ zink_set_sampler_views(struct pipe_context *pctx, &ctx->image_views[shader_type][start_slot + i], views[i]); } + ctx->num_image_views[shader_type] = start_slot + num_views; } static void |