Update graphical restrictions
Mesa 17.4 will use the correct normalization forumla Disable GLSL on intel HD2000 / HD3000 due to broken opengl 3.3 support
This commit is contained in:
parent
57fad498f8
commit
54c7914cb5
@ -2,16 +2,16 @@
|
||||
<graphical-restrictions>
|
||||
<card is="Intel(R) HD Graphics" os="windows" version="<9.0" disable="ForceLegacyDevice"/>
|
||||
<card is="Intel(R) HD Graphics" os="windows" version="<9.0" disable="HighDefinitionTextures"/>
|
||||
<card is="Intel(R) HD Graphics 2000" os="windows" disable="10BitVector"/>
|
||||
<card is="Intel(R) HD Graphics 2000" os="windows" disable="ForceLegacyDevice"/>
|
||||
<card is="Intel(R) HD Graphics 2000" os="windows" disable="HighDefinitionTextures"/>
|
||||
<card is="Intel(R) HD Graphics 3000" os="windows" disable="10BitVector"/>
|
||||
<card is="Intel(R) HD Graphics 3000" os="windows" disable="ForceLegacyDevice"/>
|
||||
<card is="Intel(R) HD Graphics 3000" os="windows" disable="HighDefinitionTextures"/>
|
||||
<card is="Intel(R) HD Graphics 4600" os="windows" disable="ComputeShader"/>
|
||||
<card contains="Intel" os="osx" disable="GI"/>
|
||||
<card contains="Intel" os="linux" version="<11.2" disable="ComputeShader"/>
|
||||
<card contains="Intel" os="linux" version="<11.2" disable="GeometryShader"/>
|
||||
<card contains="Ivybridge" os="linux" disable="10BitVector"/>
|
||||
<card contains="Sandybridge" os="linux" disable="10BitVector"/>
|
||||
<card contains="Ivybridge" os="linux" version="<17.4" disable="Correct10bitNormalization"/>
|
||||
<card contains="Sandybridge" os="linux" version="<17.4" disable="Correct10bitNormalization"/>
|
||||
<card contains="Intel" os="linux" version="<11.2" disable="TextureCompressionS3TC"/>
|
||||
<card contains="Intel" os="osx" disable="TextureCompressionS3TC"/>
|
||||
<card contains="NVIDIA" os="windows" version="<344.65" disable="BufferStorage"/>
|
||||
|
@ -71,7 +71,7 @@ namespace GraphicsRestrictions
|
||||
"HighDefinitionTextures",
|
||||
"HighDefinitionTextures256",
|
||||
"AdvancedPipeline",
|
||||
"10BitVector",
|
||||
"Correct10bitNormalization",
|
||||
"GI",
|
||||
"ForceLegacyDevice",
|
||||
"VertexIdWorking",
|
||||
|
@ -58,7 +58,7 @@ namespace GraphicsRestrictions
|
||||
GR_HIGHDEFINITION_TEXTURES,
|
||||
GR_HIGHDEFINITION_TEXTURES_256,
|
||||
GR_ADVANCED_PIPELINE,
|
||||
GR_10BIT_VECTOR,
|
||||
GR_CORRECT_10BIT_NORMALIZATION,
|
||||
GR_GI,
|
||||
GR_FORCE_LEGACY_DEVICE,
|
||||
GR_VERTEX_ID_WORKING,
|
||||
|
@ -165,7 +165,7 @@ GLuint ShaderFilesManager::loadShader(const std::string &file, unsigned type)
|
||||
}
|
||||
|
||||
if (GraphicsRestrictions::isDisabled
|
||||
(GraphicsRestrictions::GR_10BIT_VECTOR))
|
||||
(GraphicsRestrictions::GR_CORRECT_10BIT_NORMALIZATION))
|
||||
{
|
||||
code << "#define Converts_10bit_Vector\n";
|
||||
}
|
||||
|
@ -78,8 +78,8 @@ SPDynamicDrawCall::SPDynamicDrawCall(scene::E_PRIMITIVE_TYPE pt,
|
||||
glEnableVertexAttribArray(1);
|
||||
glVertexAttribPointer(1, 4, GL_INT_2_10_10_10_REV,
|
||||
GraphicsRestrictions::isDisabled
|
||||
(GraphicsRestrictions::GR_10BIT_VECTOR) ? GL_FALSE : GL_TRUE, 48,
|
||||
(void*)offset);
|
||||
(GraphicsRestrictions::GR_CORRECT_10BIT_NORMALIZATION) ?
|
||||
GL_FALSE : GL_TRUE, 48, (void*)offset);
|
||||
offset += 4;
|
||||
|
||||
// Vertex color
|
||||
@ -102,8 +102,8 @@ SPDynamicDrawCall::SPDynamicDrawCall(scene::E_PRIMITIVE_TYPE pt,
|
||||
glEnableVertexAttribArray(5);
|
||||
glVertexAttribPointer(5, 4, GL_INT_2_10_10_10_REV,
|
||||
GraphicsRestrictions::isDisabled
|
||||
(GraphicsRestrictions::GR_10BIT_VECTOR) ? GL_FALSE : GL_TRUE,
|
||||
48, (void*)offset);
|
||||
(GraphicsRestrictions::GR_CORRECT_10BIT_NORMALIZATION) ?
|
||||
GL_FALSE : GL_TRUE, 48, (void*)offset);
|
||||
offset += 4;
|
||||
|
||||
// 4 Joint indices
|
||||
@ -125,8 +125,8 @@ SPDynamicDrawCall::SPDynamicDrawCall(scene::E_PRIMITIVE_TYPE pt,
|
||||
glEnableVertexAttribArray(9);
|
||||
glVertexAttribPointer(9, 4, GL_INT_2_10_10_10_REV,
|
||||
GraphicsRestrictions::isDisabled
|
||||
(GraphicsRestrictions::GR_10BIT_VECTOR) ? GL_FALSE : GL_TRUE, 32 + 48,
|
||||
(void*)12);
|
||||
(GraphicsRestrictions::GR_CORRECT_10BIT_NORMALIZATION) ?
|
||||
GL_FALSE : GL_TRUE, 32 + 48, (void*)12);
|
||||
glVertexAttribDivisorARB(9, 1);
|
||||
// Scale (3 half floats and .w for quaternion .w)
|
||||
glEnableVertexAttribArray(10);
|
||||
|
@ -318,8 +318,8 @@ void SPMeshBuffer::recreateVAO(unsigned i)
|
||||
glEnableVertexAttribArray(1);
|
||||
glVertexAttribPointer(1, 4, GL_INT_2_10_10_10_REV,
|
||||
GraphicsRestrictions::isDisabled
|
||||
(GraphicsRestrictions::GR_10BIT_VECTOR) ? GL_FALSE : GL_TRUE, pitch,
|
||||
(void*)offset);
|
||||
(GraphicsRestrictions::GR_CORRECT_10BIT_NORMALIZATION) ?
|
||||
GL_FALSE : GL_TRUE, pitch, (void*)offset);
|
||||
offset += 4;
|
||||
|
||||
// Vertex color
|
||||
@ -351,8 +351,8 @@ void SPMeshBuffer::recreateVAO(unsigned i)
|
||||
glEnableVertexAttribArray(5);
|
||||
glVertexAttribPointer(5, 4, GL_INT_2_10_10_10_REV,
|
||||
GraphicsRestrictions::isDisabled
|
||||
(GraphicsRestrictions::GR_10BIT_VECTOR) ? GL_FALSE : GL_TRUE,
|
||||
pitch, (void*)offset);
|
||||
(GraphicsRestrictions::GR_CORRECT_10BIT_NORMALIZATION) ?
|
||||
GL_FALSE : GL_TRUE, pitch, (void*)offset);
|
||||
offset += 4;
|
||||
}
|
||||
else
|
||||
@ -418,7 +418,7 @@ void SPMeshBuffer::recreateVAO(unsigned i)
|
||||
glEnableVertexAttribArray(9);
|
||||
glVertexAttribPointer(9, 4, GL_INT_2_10_10_10_REV,
|
||||
GraphicsRestrictions::isDisabled
|
||||
(GraphicsRestrictions::GR_10BIT_VECTOR) ? GL_FALSE : GL_TRUE, 32,
|
||||
(GraphicsRestrictions::GR_CORRECT_10BIT_NORMALIZATION) ? GL_FALSE : GL_TRUE, 32,
|
||||
(void*)12);
|
||||
glVertexAttribDivisorARB(9, 1);
|
||||
// Scale (3 half floats and .w for quaternion .w)
|
||||
|
@ -220,8 +220,8 @@ void STKTextBillboard::init(core::stringw text, FontWithFace* face)
|
||||
glEnableVertexAttribArray(9);
|
||||
glVertexAttribPointer(9, 4, GL_INT_2_10_10_10_REV,
|
||||
GraphicsRestrictions::isDisabled
|
||||
(GraphicsRestrictions::GR_10BIT_VECTOR) ? GL_FALSE : GL_TRUE, 24,
|
||||
(void*)12);
|
||||
(GraphicsRestrictions::GR_CORRECT_10BIT_NORMALIZATION) ?
|
||||
GL_FALSE : GL_TRUE, 24, (void*)12);
|
||||
glVertexAttribDivisorARB(9, 1);
|
||||
|
||||
// Scale (3 half floats and .w for quaternion .w)
|
||||
|
Loading…
x
Reference in New Issue
Block a user