temporarily fix texture cache
Some checks failed
eden-license / license-header (pull_request) Failing after 32s
Some checks failed
eden-license / license-header (pull_request) Failing after 32s
This commit is contained in:
parent
ff44444bda
commit
1216d1b9f4
2 changed files with 5 additions and 4 deletions
|
@ -1426,6 +1426,7 @@ ImageId TextureCache<P>::JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, DA
|
||||||
if (solution) {
|
if (solution) {
|
||||||
gpu_addr = solution->gpu_addr;
|
gpu_addr = solution->gpu_addr;
|
||||||
cpu_addr = solution->cpu_addr;
|
cpu_addr = solution->cpu_addr;
|
||||||
|
// TODO: properly update new_info.size.depth.
|
||||||
new_info.resources = solution->resources;
|
new_info.resources = solution->resources;
|
||||||
join_overlap_ids.push_back(overlap_id);
|
join_overlap_ids.push_back(overlap_id);
|
||||||
join_copies_to_do.emplace_back(JoinCopy{false, overlap_id});
|
join_copies_to_do.emplace_back(JoinCopy{false, overlap_id});
|
||||||
|
|
|
@ -1216,10 +1216,10 @@ std::optional<SubresourceBase> FindSubresource(const ImageInfo& candidate, const
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
if (existing.type == ImageType::e3D) {
|
if (existing.type == ImageType::e3D) {
|
||||||
const u32 mip_depth = std::max(1U, existing.size.depth << base->level);
|
// const u32 mip_depth = std::max(1U, existing.size.depth << base->level);
|
||||||
if (mip_depth < candidate.size.depth + base->layer) {
|
// if (mip_depth < candidate.size.depth + base->layer) {
|
||||||
return std::nullopt;
|
// return std::nullopt;
|
||||||
}
|
// }
|
||||||
} else if (existing.resources.layers < candidate.resources.layers + base->layer) {
|
} else if (existing.resources.layers < candidate.resources.layers + base->layer) {
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue