Fix incorrect assert for result.type in DXIL SetResult

Want to assert if members.empty() && type == Unknown
This commit is contained in:
Jake Turner
2025-05-18 09:21:09 +01:00
parent 3f8df6b589
commit 72ff41656f
+1 -1
View File
@@ -6578,7 +6578,7 @@ void ThreadState::SetResult(const Id &id, ShaderVariable &result, Operation op,
{
RDCASSERT((result.rows > 0 && result.columns > 0) || !result.members.empty());
RDCASSERT(result.columns <= 16);
RDCASSERTNOTEQUAL(result.type, VarType::Unknown);
RDCASSERT(result.type != VarType::Unknown || !result.members.empty());
// Can only flush denorms for float types
bool flushDenorm = OperationFlushing(op, dxOpCode) && (result.type == VarType::Float);