mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +00:00
vulkan: Fix validation error on zero-size buffer.
This commit is contained in:
parent
fbf1a267b0
commit
c719921bbe
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ void GraphicsPipeline::BindResources(const Liverpool::Regs& regs,
|
|||
for (const auto& buffer : stage->buffers) {
|
||||
const auto vsharp = buffer.GetSharp(*stage);
|
||||
const bool is_storage = buffer.IsStorage(vsharp);
|
||||
if (vsharp) {
|
||||
if (vsharp && vsharp.GetSize() > 0) {
|
||||
const VAddr address = vsharp.base_address;
|
||||
if (texture_cache.IsMeta(address)) {
|
||||
LOG_WARNING(Render_Vulkan, "Unexpected metadata read by a PS shader (buffer)");
|
||||
|
|
Loading…
Add table
Reference in a new issue