From bf64df71f9e7b40e79ff2638a9170ebcfafe43a4 Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 8 Oct 2013 09:29:51 +0800 Subject: [PATCH] GLES: Add GE_CMD_ZWRITEDISABLE to ZTEST section --- GPU/GLES/GLES_GPU.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/GPU/GLES/GLES_GPU.cpp b/GPU/GLES/GLES_GPU.cpp index 250e237c9..887ade688 100644 --- a/GPU/GLES/GLES_GPU.cpp +++ b/GPU/GLES/GLES_GPU.cpp @@ -52,8 +52,6 @@ struct CommandTableEntry { static const CommandTableEntry commandTable[] = { // Changes that dirty the framebuffer - {GE_CMD_REGION1, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, - {GE_CMD_REGION2, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, {GE_CMD_FRAMEBUFPTR, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, {GE_CMD_FRAMEBUFWIDTH, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, {GE_CMD_FRAMEBUFPIXFORMAT, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, @@ -144,8 +142,6 @@ static const CommandTableEntry commandTable[] = { {GE_CMD_TEXENVCOLOR, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, // Simple render state changes. Handled in StateMapping.cpp. - {GE_CMD_SCISSOR1, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, - {GE_CMD_SCISSOR2, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, {GE_CMD_OFFSETX, FLAG_FLUSHBEFOREONCHANGE}, {GE_CMD_OFFSETY, FLAG_FLUSHBEFOREONCHANGE}, {GE_CMD_CULL, FLAG_FLUSHBEFOREONCHANGE}, @@ -198,6 +194,14 @@ static const CommandTableEntry commandTable[] = { {GE_CMD_VIEWPORTZ1, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, {GE_CMD_VIEWPORTZ2, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, + // Region + {GE_CMD_REGION1, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, + {GE_CMD_REGION2, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, + + // Scissor + {GE_CMD_SCISSOR1, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, + {GE_CMD_SCISSOR2, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, + // These dirty various vertex shader uniforms. Could embed information about that in this table and call dirtyuniform directly, hm... {GE_CMD_AMBIENTCOLOR, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, {GE_CMD_AMBIENTALPHA, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE}, @@ -1243,6 +1247,7 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) { case GE_CMD_STENCILTESTENABLE: case GE_CMD_ZTESTENABLE: case GE_CMD_ZTEST: + case GE_CMD_ZWRITEDISABLE: break; case GE_CMD_MORPHWEIGHT0: