(surface->base.format == PIPE_FORMAT_Z24_UNORM_S8_UINT && surface->ivci.format == VK_FORMAT_D32_SFLOAT_S8_UINT)))
ctx->di.textures[shader][start_slot + i].sampler = state->sampler_clamped;
}
- zink_batch_usage_set(&state->batch_uses, ctx->batch.state);
} else {
ctx->di.textures[shader][start_slot + i].sampler = VK_NULL_HANDLE;
}
res->obj->unordered_read = res->obj->unordered_write = false;
else
res->obj->unordered_read = false;
-
- struct zink_sampler_state *sampler_state = ctx->sampler_states[stage][j];
- if (sampler_state && i == ZINK_DESCRIPTOR_TYPE_SAMPLER_VIEW && j <= ctx->di.num_samplers[stage])
- zink_batch_usage_set(&sampler_state->batch_uses, ctx->batch.state);
}
}
}
struct zink_sampler_state {
VkSampler sampler;
VkSampler sampler_clamped;
- struct zink_batch_usage *batch_uses;
bool custom_border_color;
bool emulate_nonseamless;
};