summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2018-05-26 00:04:18 +1000
committerStenzek <stenzek@gmail.com>2018-05-26 00:07:20 +1000
commit640bfb813511d9cf1da38ce22835ec850146acd9 (patch)
tree400025a5b8d97b4eac8ba196ec94113343c0523c /Source/Core/VideoCommon
parent3d44dc39814197e43bf1b8c2524684252251ee7b (diff)
VideoConfig: Add a field for indicating logic op support in the backend
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/ShaderGenCommon.cpp1
-rw-r--r--Source/Core/VideoCommon/ShaderGenCommon.h3
-rw-r--r--Source/Core/VideoCommon/VideoConfig.h1
3 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.cpp b/Source/Core/VideoCommon/ShaderGenCommon.cpp
index b4cf9e9a48..54d87691de 100644
--- a/Source/Core/VideoCommon/ShaderGenCommon.cpp
+++ b/Source/Core/VideoCommon/ShaderGenCommon.cpp
@@ -33,6 +33,7 @@ ShaderHostConfig ShaderHostConfig::GetCurrent()
bits.backend_dynamic_sampler_indexing =
g_ActiveConfig.backend_info.bSupportsDynamicSamplerIndexing;
bits.backend_shader_framebuffer_fetch = g_ActiveConfig.backend_info.bSupportsFramebufferFetch;
+ bits.backend_logic_op = g_ActiveConfig.backend_info.bSupportsLogicOp;
return bits;
}
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.h b/Source/Core/VideoCommon/ShaderGenCommon.h
index ad5604127c..85534b164b 100644
--- a/Source/Core/VideoCommon/ShaderGenCommon.h
+++ b/Source/Core/VideoCommon/ShaderGenCommon.h
@@ -180,7 +180,8 @@ union ShaderHostConfig
u32 backend_bitfield : 1;
u32 backend_dynamic_sampler_indexing : 1;
u32 backend_shader_framebuffer_fetch : 1;
- u32 pad : 11;
+ u32 backend_logic_op : 1;
+ u32 pad : 10;
};
static ShaderHostConfig GetCurrent();
diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h
index 03ccfca3ba..c8a9e90638 100644
--- a/Source/Core/VideoCommon/VideoConfig.h
+++ b/Source/Core/VideoCommon/VideoConfig.h
@@ -201,6 +201,7 @@ struct VideoConfig final
bool bSupportsFragmentStoresAndAtomics; // a.k.a. OpenGL SSBOs a.k.a. Direct3D UAVs
bool bSupportsDepthClamp; // Needed by VertexShaderGen, so must stay in VideoCommon
bool bSupportsReversedDepthRange;
+ bool bSupportsLogicOp;
bool bSupportsMultithreading;
bool bSupportsGPUTextureDecoding;
bool bSupportsST3CTextures;