mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-15 19:28:29 +12:00
Fix various compiler warnings given by Clang (#170)
This commit is contained in:
parent
4d1be950e3
commit
4eaa600b57
8 changed files with 26 additions and 28 deletions
|
@ -242,7 +242,7 @@ LatteParsedGSCopyShader* LatteGSCopyShaderParser_parse(uint8* programData, uint3
|
|||
// verify if all registers are exported
|
||||
for(sint32 i=0; i<shaderContext->numParam; i++)
|
||||
{
|
||||
if( shaderContext->paramMapping[i].exportParam == 0xFFFF )
|
||||
if( shaderContext->paramMapping[i].exportParam == 0xFF )
|
||||
debugBreakpoint();
|
||||
}
|
||||
return shaderContext;
|
||||
|
|
|
@ -76,23 +76,23 @@ typedef struct
|
|||
struct
|
||||
{
|
||||
// CPU
|
||||
volatile uint64 lastCycleCount;
|
||||
volatile uint64 skippedCycles;
|
||||
volatile uint32 recompilerLeaveCount; // increased everytime the recompiler switches back to interpreter
|
||||
volatile uint32 threadLeaveCount; // increased everytime a thread gives up it's timeslice
|
||||
uint64 lastCycleCount;
|
||||
uint64 skippedCycles;
|
||||
uint32 recompilerLeaveCount; // increased everytime the recompiler switches back to interpreter
|
||||
uint32 threadLeaveCount; // increased everytime a thread gives up it's timeslice
|
||||
// GPU
|
||||
volatile uint32 lastUpdate;
|
||||
volatile uint32 frameCounter;
|
||||
volatile uint32 drawCallCounter;
|
||||
volatile uint32 shaderBindCount;
|
||||
volatile uint64 vertexDataUploaded; // amount of vertex data uploaded to GPU (bytes)
|
||||
volatile uint64 vertexDataCached; // amount of vertex data reused from GPU cache (bytes)
|
||||
volatile uint64 uniformBankUploadedData; // amount of uniform buffer data (excluding remapped uniforms) uploaded to GPU
|
||||
volatile uint64 uniformBankUploadedCount; // number of separate uploads for uniformBankDataUploaded
|
||||
volatile uint64 indexDataUploaded;
|
||||
volatile uint64 indexDataCached;
|
||||
uint32 lastUpdate;
|
||||
uint32 frameCounter;
|
||||
uint32 drawCallCounter;
|
||||
uint32 shaderBindCount;
|
||||
uint64 vertexDataUploaded; // amount of vertex data uploaded to GPU (bytes)
|
||||
uint64 vertexDataCached; // amount of vertex data reused from GPU cache (bytes)
|
||||
uint64 uniformBankUploadedData; // amount of uniform buffer data (excluding remapped uniforms) uploaded to GPU
|
||||
uint64 uniformBankUploadedCount; // number of separate uploads for uniformBankDataUploaded
|
||||
uint64 indexDataUploaded;
|
||||
uint64 indexDataCached;
|
||||
}cycle[PERFORMANCE_MONITOR_TRACK_CYCLES];
|
||||
volatile sint32 cycleIndex;
|
||||
sint32 cycleIndex;
|
||||
// new stats
|
||||
LattePerfStatTimer gpuTime_frameTime;
|
||||
LattePerfStatTimer gpuTime_shaderCreate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue