[vulkan] Refining ProvokingVertex remork

This commit is contained in:
CamilleLaVey 2026-04-07 15:28:17 -04:00
parent 0e77fa80ab
commit 3e324175ac

View file

@ -611,6 +611,18 @@ void PipelineCache::LoadDiskResources(u64 title_id, std::stop_token stop_loading
(key.state.dynamic_vertex_input != 0) != dynamic_features.has_dynamic_vertex_input) {
return;
}
const bool key_requests_provoking_last = key.state.provoking_vertex_last != 0;
if (key_requests_provoking_last && !dynamic_features.has_provoking_vertex_last_mode) {
return;
}
const bool key_uses_transform_feedback = key.state.xfb_enabled != 0;
if (key_uses_transform_feedback && key_requests_provoking_last &&
!dynamic_features.has_provoking_vertex_tf_preserve) {
return;
}
workers.QueueWork([this, key, envs_ = std::move(envs), &state, &callback]() mutable {
ShaderPools pools;
boost::container::static_vector<Shader::Environment*, 5> env_ptrs;