mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-27 16:02:37 +00:00
shader: share proven selector domains for paired images and samplers
This commit is contained in:
1 parent
9c04abacc5
commit
2a4ccaa5d5
6 files changed
+147
-42
No files matched your search
@@ -1300,11 +1300,7 @@ ResourcePlan ExtractResourcePlan(const Program& program) {
|
||||
uint32_t group = 0;
|
||||
for (; group < plan.selector_keys.size(); ++group) {
|
||||
const auto& b = *program.descriptor_sources[plan.selector_keys[group].source].indirect_descriptor;
|
||||
if (a.selector == b.selector && a.signed_count == b.signed_count &&
|
||||
a.workgroup_axis == b.workgroup_axis &&
|
||||
EquivalentValue(program, a.key_count, b.key_count) &&
|
||||
EquivalentValue(program, a.selector_first, b.selector_first) &&
|
||||
EquivalentValue(program, a.selector_mask, b.selector_mask)) break;
|
||||
if (EquivalentSelectorDomain(program, a, b)) break;
|
||||
}
|
||||
if (group == plan.selector_keys.size()) plan.selector_keys.push_back({.source = source});
|
||||
plan.selector_groups[source] = group;
|
||||
|
||||
Reference in new issue
Block a user