gsdx-debug: more debug info in gl trace

This commit is contained in:
Gregory Hainaut 2015-05-12 12:36:34 +02:00
parent 4e222f18cd
commit e0012811ae
3 changed files with 11 additions and 2 deletions

View File

@ -718,7 +718,9 @@ void GSDeviceOGL::StretchRect(GSTexture* st, const GSVector4& sr, GSTexture* dt,
return;
}
GL_PUSH("StretchRect");
GL_PUSH(format("StretchRect from %d to %d",
static_cast<GSTextureOGL*>(st)->GetID(),
static_cast<GSTextureOGL*>(dt)->GetID()).c_str());
// ************************************
// Init

View File

@ -211,7 +211,10 @@ void GSRendererOGL::SendDraw(bool require_barrier)
void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Source* tex)
{
GL_PUSH(format("GL Draw in (%d/%d)", static_cast<GSTextureOGL*>(rt)->GetID(), static_cast<GSTextureOGL*>(ds)->GetID()).c_str());
GL_PUSH(format("GL Draw from %d in %d (Depth %d)",
tex && tex->m_texture ? static_cast<GSTextureOGL*>(tex->m_texture)->GetID() : 0,
static_cast<GSTextureOGL*>(rt)->GetID(),
static_cast<GSTextureOGL*>(ds)->GetID()).c_str());
GSDrawingEnvironment& env = m_env;
GSDrawingContext* context = m_context;

View File

@ -29,6 +29,8 @@ static const uint32 g_gs_cb_index = 22;
void GSDeviceOGL::CreateTextureFX()
{
GL_PUSH("CreateTextureFX");
m_vs_cb = new GSUniformBufferOGL(g_vs_cb_index, sizeof(VSConstantBuffer));
m_ps_cb = new GSUniformBufferOGL(g_ps_cb_index, sizeof(PSConstantBuffer));
@ -67,6 +69,8 @@ void GSDeviceOGL::CreateTextureFX()
// Help to debug FS in apitrace
m_apitrace = CompilePS(PSSelector());
GL_POP();
}
GSDepthStencilOGL* GSDeviceOGL::CreateDepthStencil(OMDepthStencilSelector dssel)