From adb8be32879985d88039d18412fc7276093bcf51 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 28 Sep 2016 09:55:04 +0200 Subject: [PATCH] gsdx: add/update comment Need to investigate why the number of vertex is different in upscaled resolution --- plugins/GSdx/GSRendererHW.cpp | 2 +- plugins/GSdx/GSState.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index 94efa025dd..10be4f3cb4 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -511,7 +511,7 @@ void GSRendererHW::Draw() // Mipmap Linear. Both layers are sampled, only take the big one lod = std::max((int)floor(m_vt.m_lod.x), 0); } else { - // On GS lod is an int with 4 decimal digit. + // On GS lod is a fixed float number 7:4 (4 bit for the frac part) lod = std::max((int)round(m_vt.m_lod.x + 0.0625), 0); } } diff --git a/plugins/GSdx/GSState.cpp b/plugins/GSdx/GSState.cpp index 1a75942a24..c1acc211bf 100644 --- a/plugins/GSdx/GSState.cpp +++ b/plugins/GSdx/GSState.cpp @@ -2617,6 +2617,8 @@ __forceinline void GSState::VertexKick(uint32 skip) case GS_TRIANGLESTRIP: case GS_TRIANGLEFAN: case GS_SPRITE: + // FIXME: GREG I don't understand the purpose of the m_nativeres check + // It impacts badly the number of draw call in the HW renderer. test |= m_nativeres ? pmin.eq16(pmax).zwzwl() : pmin.eq16(pmax); break; default: