RegTest: Fix directory creation always failing
This commit is contained in:
parent
ff17444074
commit
dc75afeb3d
|
@ -33,7 +33,10 @@ def run_regression_tests(runner, gamedir, destdir, dump_interval, frames, parall
|
||||||
paths = glob.glob(gamedir + "/*.*", recursive=True)
|
paths = glob.glob(gamedir + "/*.*", recursive=True)
|
||||||
gamepaths = list(filter(is_game_path, paths))
|
gamepaths = list(filter(is_game_path, paths))
|
||||||
|
|
||||||
if not os.path.isdir(destdir) and not os.mkdir(destdir):
|
try:
|
||||||
|
if not os.path.isdir(destdir):
|
||||||
|
os.mkdir(destdir)
|
||||||
|
except OSError:
|
||||||
print("Failed to create directory")
|
print("Failed to create directory")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -2498,10 +2498,29 @@ void GPU_HW::DispatchRenderCommand()
|
||||||
if (m_draw_mode.IsTexturePageChanged())
|
if (m_draw_mode.IsTexturePageChanged())
|
||||||
{
|
{
|
||||||
m_draw_mode.ClearTexturePageChangedFlag();
|
m_draw_mode.ClearTexturePageChangedFlag();
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
if (m_vram_dirty_rect.Valid())
|
||||||
|
{
|
||||||
|
GL_INS_FMT("VRAM DIRTY: {},{} => {},{}", m_vram_dirty_rect.left, m_vram_dirty_rect.top, m_vram_dirty_rect.right,
|
||||||
|
m_vram_dirty_rect.bottom);
|
||||||
|
|
||||||
|
auto tpr = m_draw_mode.mode_reg.GetTexturePageRectangle();
|
||||||
|
GL_INS_FMT("PAGE RECT: {},{} => {},{}", tpr.left, tpr.top, tpr.right, tpr.bottom);
|
||||||
|
if (m_draw_mode.mode_reg.IsUsingPalette())
|
||||||
|
{
|
||||||
|
tpr = m_draw_mode.GetTexturePaletteRectangle();
|
||||||
|
GL_INS_FMT("PALETTE RECT: {},{} => {},{}", tpr.left, tpr.top, tpr.right, tpr.bottom);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (m_vram_dirty_rect.Valid() && (m_draw_mode.mode_reg.GetTexturePageRectangle().Intersects(m_vram_dirty_rect) ||
|
if (m_vram_dirty_rect.Valid() && (m_draw_mode.mode_reg.GetTexturePageRectangle().Intersects(m_vram_dirty_rect) ||
|
||||||
(m_draw_mode.mode_reg.IsUsingPalette() &&
|
(m_draw_mode.mode_reg.IsUsingPalette() &&
|
||||||
m_draw_mode.GetTexturePaletteRectangle().Intersects(m_vram_dirty_rect))))
|
m_draw_mode.GetTexturePaletteRectangle().Intersects(m_vram_dirty_rect))))
|
||||||
{
|
{
|
||||||
|
GL_INS("Invalidating VRAM read cache due to drawing area overlap");
|
||||||
|
|
||||||
// Log_DevPrint("Invalidating VRAM read cache due to drawing area overlap");
|
// Log_DevPrint("Invalidating VRAM read cache due to drawing area overlap");
|
||||||
if (!IsFlushed())
|
if (!IsFlushed())
|
||||||
FlushRender();
|
FlushRender();
|
||||||
|
@ -2534,6 +2553,8 @@ void GPU_HW::DispatchRenderCommand()
|
||||||
|
|
||||||
EnsureVertexBufferSpaceForCurrentCommand();
|
EnsureVertexBufferSpaceForCurrentCommand();
|
||||||
|
|
||||||
|
if (GetBatchVertexCount() == 0)
|
||||||
|
{
|
||||||
// transparency mode change
|
// transparency mode change
|
||||||
if (transparency_mode != GPUTransparencyMode::Disabled &&
|
if (transparency_mode != GPUTransparencyMode::Disabled &&
|
||||||
(texture_mode == GPUTextureMode::Disabled || !NeedsShaderBlending(transparency_mode)))
|
(texture_mode == GPUTextureMode::Disabled || !NeedsShaderBlending(transparency_mode)))
|
||||||
|
@ -2598,6 +2619,7 @@ void GPU_HW::DispatchRenderCommand()
|
||||||
m_sw_renderer->PushCommand(cmd);
|
m_sw_renderer->PushCommand(cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LoadVertices();
|
LoadVertices();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue