mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 21:31:04 +00:00
video_core: Initial implementation of pipeline cache (#3816)
* Initial implementation * Fix for crash caused by stale stages data; cosmetics applied * Someone mentioned the assert * Async blob writer * Fix for memory leak * Remain stuff * Async changed to `packaged_task`
This commit is contained in:
@@ -53,8 +53,15 @@ struct BufferResource {
|
||||
}
|
||||
|
||||
constexpr AmdGpu::Buffer GetSharp(const auto& info) const noexcept {
|
||||
const auto buffer =
|
||||
inline_cbuf ? inline_cbuf : info.template ReadUdSharp<AmdGpu::Buffer>(sharp_idx);
|
||||
AmdGpu::Buffer buffer{};
|
||||
if (inline_cbuf) {
|
||||
buffer = inline_cbuf;
|
||||
if (inline_cbuf.base_address > 1) {
|
||||
buffer.base_address += info.pgm_base; // address fixup
|
||||
}
|
||||
} else {
|
||||
buffer = info.template ReadUdSharp<AmdGpu::Buffer>(sharp_idx);
|
||||
}
|
||||
if (!buffer.Valid()) {
|
||||
LOG_DEBUG(Render, "Encountered invalid buffer sharp");
|
||||
return AmdGpu::Buffer::Null();
|
||||
|
||||
Reference in New Issue
Block a user