sst1: a bit more style cleanup

This commit is contained in:
sezero
2018-11-05 21:50:20 +03:00
parent 347ccd8391
commit a0f4e5a4e6
4 changed files with 8 additions and 26 deletions

View File

@@ -428,13 +428,7 @@ GR_ENTRY(grLfbLock, FxBool,( GrLock_t type, GrBuffer_t buffer, GrLfbWriteMode_t
#endif
GR_CHECK_SIZE();
/* We HAVE to idle on Jr., as out-of-order LFBs are unacceptable */
if (
lockIdle ||
(
_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].type ==
GR_SSTTYPE_SST96
)
)
if (lockIdle || (_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].type == GR_SSTTYPE_SST96))
grSstIdle();
GR_RETURN( rv );
} /* grLfbLock */

View File

@@ -836,13 +836,10 @@ GR_ENTRY(grSstWinOpen, FxBool, (
for (tmu = 0; tmu < gc->num_tmu; tmu += 1)
{
FxU32 textureMode = (FxU32)SST_SEQ_8_DOWNLD;
if ( (_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].type ==
GR_SSTTYPE_VOODOO ) &&
(_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].sstBoard.VoodooConfig.tmuConfig[tmu].tmuRev ==
0 ) )
{
if ((_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].type == GR_SSTTYPE_VOODOO) &&
(_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].sstBoard.VoodooConfig.tmuConfig[tmu].tmuRev == 0)) {
textureMode = 0;
}
}
gc->state.tmu_config[tmu].textureMode = textureMode;
gc->state.tmu_config[tmu].tLOD = 0x00000000;
gc->state.tmu_config[tmu].tDetail = 0x00000000;

View File

@@ -443,13 +443,7 @@ GR_ENTRY(grLfbLock, FxBool,( GrLock_t type, GrBuffer_t buffer, GrLfbWriteMode_t
#endif
GR_CHECK_SIZE();
/* We HAVE to idle on Jr., as out-of-order LFBs are unacceptable */
if (
lockIdle ||
(
_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].type ==
GR_SSTTYPE_SST96
)
)
if (lockIdle || (_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].type == GR_SSTTYPE_SST96))
grFinish();
GR_RETURN( rv );
} /* grLfbLock */

View File

@@ -880,13 +880,10 @@ GR_ENTRY(grSstWinOpen, GrContext_t, (FxU32 hWnd,
for (tmu = 0; tmu < gc->num_tmu; tmu += 1)
{
FxU32 textureMode = (FxU32)SST_SEQ_8_DOWNLD;
if ( (_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].type ==
GR_SSTTYPE_VOODOO ) &&
(_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].sstBoard.VoodooConfig.tmuConfig[tmu].tmuRev ==
0 ) )
{
if ((_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].type == GR_SSTTYPE_VOODOO) &&
(_GlideRoot.hwConfig.SSTs[_GlideRoot.current_sst].sstBoard.VoodooConfig.tmuConfig[tmu].tmuRev == 0)) {
textureMode = 0;
}
}
gc->state.tmu_config[tmu].textureMode = textureMode;
gc->state.tmu_config[tmu].tLOD = 0x00000000;
gc->state.tmu_config[tmu].tDetail = 0x00000000;