summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GeometryShaderManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/GeometryShaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/GeometryShaderManager.cpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/GeometryShaderManager.cpp b/Source/Core/VideoCommon/GeometryShaderManager.cpp
index f71a687ce8..459df67868 100644
--- a/Source/Core/VideoCommon/GeometryShaderManager.cpp
+++ b/Source/Core/VideoCommon/GeometryShaderManager.cpp
@@ -8,6 +8,7 @@
#include "Common/ChunkFile.h"
#include "Common/CommonTypes.h"
#include "VideoCommon/BPMemory.h"
+#include "VideoCommon/RenderState.h"
#include "VideoCommon/VideoConfig.h"
#include "VideoCommon/XFMemory.h"
@@ -36,10 +37,22 @@ void GeometryShaderManager::Dirty()
// Any constants that can changed based on settings should be re-calculated
s_projection_changed = true;
+ // Uses EFB scale config
+ SetLinePtWidthChanged();
+
dirty = true;
}
-void GeometryShaderManager::SetConstants()
+static void SetVSExpand(VSExpand expand)
+{
+ if (GeometryShaderManager::constants.vs_expand != expand)
+ {
+ GeometryShaderManager::constants.vs_expand = expand;
+ GeometryShaderManager::dirty = true;
+ }
+}
+
+void GeometryShaderManager::SetConstants(PrimitiveType prim)
{
if (s_projection_changed && g_ActiveConfig.stereo_mode != StereoMode::Off)
{
@@ -63,6 +76,16 @@ void GeometryShaderManager::SetConstants()
dirty = true;
}
+ if (g_ActiveConfig.UseVSForLinePointExpand())
+ {
+ if (prim == PrimitiveType::Points)
+ SetVSExpand(VSExpand::Point);
+ else if (prim == PrimitiveType::Lines)
+ SetVSExpand(VSExpand::Line);
+ else
+ SetVSExpand(VSExpand::None);
+ }
+
if (s_viewport_changed)
{
s_viewport_changed = false;