Fix assert check on format number of components for AtomicBinOp on UAV

Tweak error message about AtomicBinOp storing to out of bounds or unbound resource
This commit is contained in:
Jake Turner
2025-05-22 14:00:38 +01:00
parent f79b95c8db
commit d4c1919a9c
+3 -2
View File
@@ -3333,7 +3333,7 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
RDCASSERTNOTEQUAL(stride, 1);
RDCASSERTEQUAL(result.columns, 1);
RDCASSERTEQUAL(fmt.numComps, result.columns);
RDCASSERTEQUAL(fmt.numComps * fmt.byteWidth, GetElementByteSize(result.type));
RDCASSERTNOTEQUAL(stride, 0);
RDCASSERTNOTEQUAL(fmt.compType, CompType::Typeless);
@@ -3515,7 +3515,8 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
// NULL resource or out of bounds
if((!texData && elemIdx >= numElems) || (texData && dataOffset >= dataSize))
{
RDCERR("Ignoring store to unbound resource %s", GetArgumentName(1).c_str());
RDCERR("Ignoring store to unbound resource or out of bounds store %s",
GetArgumentName(1).c_str());
}
else
{