Vulkan: When deriving stencilref from color, don't forget to update the value.

Plus minor cleanups.
This commit is contained in:
Henrik Rydgård committed 2017-11-12 19:33:21 +01:00
1 parent ac78b908d3
commit 232e30f4db
4 files changed
+4 -4

No files matched your search

+2
View File
@@ -997,6 +997,8 @@ void DrawEngineVulkan::DoFlush() {
}
lastPipeline_ = pipeline;
}
if (result.setStencil)
dynState_.stencilRef = result.stencilValue;
ApplyDrawStateLate(renderManager, false, 0, pipeline->useBlendConstant);
gstate_c.Clean(DIRTY_BLEND_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_RASTER_STATE | DIRTY_VIEWPORTSCISSOR_STATE);
lastPipeline_ = pipeline;
-1
View File
@@ -362,7 +362,6 @@ void FramebufferManagerVulkan::BindPostShader(const PostShaderUniforms &uniforms
}
postShaderUniforms_ = uniforms;
// VulkanRenderManager *renderManager = (VulkanRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
cur2DPipeline_ = pipelinePostShader_;
gstate_c.Dirty(DIRTY_VERTEXSHADER_STATE);
+2 -1
View File
@@ -88,7 +88,8 @@ const char *GetFn(const char *fn);
OutputDebugStringUTF8(temp); \
} \
} while (false)
#define DUMPLOG(x) OutputDebugStringUTF8(x);
#define DUMPLOG(x) OutputDebugStringUTF8(x)
#ifdef _DEBUG
#define DLOG(...) XLOG_IMPL("D", __VA_ARGS__)
-2
View File
@@ -4,8 +4,6 @@
// Debug help: adb logcat -s DEBUG PPSSPPNativeActivity PPSSPP
// TODO: This is only enough for 4x render resolution / 4x texture upscale for debugger.
// Maybe we should use a dynamically allocated one for larger?
void VulkanQueueRunner::CreateDeviceObjects() {
ILOG("VulkanQueueRunner::CreateDeviceObjects");
InitBackbufferRenderPass();