mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-20 22:41:36 +00:00
Remove some fatal errors that don't really need to be fatal
This commit is contained in:
@@ -144,7 +144,7 @@ void D3D11DebugManager::FillCBufferVariables(const string &prefix, size_t &offse
|
||||
type = eVar_Double;
|
||||
break;
|
||||
default:
|
||||
RDCFATAL("Unexpected type in constant buffer");
|
||||
RDCERR("Unexpected type in constant buffer");
|
||||
}
|
||||
|
||||
bool columnMajor = invars[v].type.descriptor.varClass == CLASS_MATRIX_COLUMNS;
|
||||
|
||||
@@ -339,8 +339,13 @@ UINT GetFormatBPP(DXGI_FORMAT f)
|
||||
ret *= 2; // 4 channels, half a byte each
|
||||
break;
|
||||
|
||||
case DXGI_FORMAT_UNKNOWN:
|
||||
ret = 0;
|
||||
RDCWARN("Getting BPP of DXGI_FORMAT_UNKNOWN");
|
||||
break;
|
||||
|
||||
default:
|
||||
RDCFATAL("Unrecognised DXGI Format: %d", f);
|
||||
RDCERR("Unrecognised DXGI Format: %d", f);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1395,8 +1400,13 @@ DXGI_FORMAT GetTypelessFormat(DXGI_FORMAT f)
|
||||
RDCERR("No Typeless DXGI Format for %d", f);
|
||||
return DXGI_FORMAT_UNKNOWN;
|
||||
|
||||
case DXGI_FORMAT_UNKNOWN:
|
||||
RDCWARN("Getting Typeless format of DXGI_FORMAT_UNKNOWN");
|
||||
return DXGI_FORMAT_UNKNOWN;
|
||||
|
||||
default:
|
||||
RDCFATAL("Unrecognised DXGI Format: %d", f);
|
||||
RDCERR("Unrecognised DXGI Format: %d", f);
|
||||
return DXGI_FORMAT_UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -630,7 +630,7 @@ void State::SetDst(const ASMOperand &dstoper, const ASMOperation &op, const Shad
|
||||
case TYPE_INPUT:
|
||||
case TYPE_CONSTANT_BUFFER:
|
||||
{
|
||||
RDCFATAL("Attempt to write to read-only operand (input, cbuffer, etc).\n"
|
||||
RDCERR("Attempt to write to read-only operand (input, cbuffer, etc).\n"
|
||||
"This is likely a bug in the asm extraction as such code isn't likely to be produced by fxc.");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -229,7 +229,8 @@ int TypeByteSize(VariableType t)
|
||||
case VARTYPE_INTERFACE_POINTER:
|
||||
return 1;
|
||||
default:
|
||||
RDCFATAL("Trying to take size of undefined type %d", t);
|
||||
RDCERR("Trying to take size of undefined type %d", t);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -564,7 +564,8 @@ uint32_t GetByteSize(uint32_t Width, uint32_t Height, uint32_t Depth, VkFormat F
|
||||
astc[0] = 12; astc[1] = 12;
|
||||
break;
|
||||
default:
|
||||
RDCFATAL("Unrecognised Vulkan Format: %d", Format);
|
||||
ret = 1;
|
||||
RDCERR("Unrecognised Vulkan Format: %d", Format);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user