Permalink
Browse files

Vulkan: When deriving stencilref from color, don't forget to update t…

…he value.

Plus minor cleanups.
  • Loading branch information...
hrydgard committed Nov 12, 2017
1 parent ac78b90 commit 232e30f4db824feed4db7f5034aab1d905a0109e
@@ -997,6 +997,8 @@ void DrawEngineVulkan::DoFlush() {
}
lastPipeline_ = pipeline;
}
if (result.setStencil)
dynState_.stencilRef = result.stencilValue;

This comment has been minimized.

Show comment
Hide comment
@unknownbrackets

unknownbrackets Nov 12, 2017

Collaborator

Hmm, not 98f692c?

@unknownbrackets

unknownbrackets Nov 12, 2017

Collaborator

Hmm, not 98f692c?

This comment has been minimized.

Show comment
Hide comment
@hrydgard

hrydgard Nov 12, 2017

Owner

Oh, duh. That's better. Please override my commit :)

@hrydgard

hrydgard Nov 12, 2017

Owner

Oh, duh. That's better. Please override my commit :)

ApplyDrawStateLate(renderManager, false, 0, pipeline->useBlendConstant);
gstate_c.Clean(DIRTY_BLEND_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_RASTER_STATE | DIRTY_VIEWPORTSCISSOR_STATE);
lastPipeline_ = pipeline;
@@ -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);
@@ -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__)
@@ -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();

0 comments on commit 232e30f

Please sign in to comment.