Archived issue #0029509
Visualization, TKOpenGl - Weighted OIT + MSAA shader compilation errors
Description
When both Weighted OIT and MSAA are enabled, the shader compilation errors occur:
on the following device:
#version 300 es
<...>
uniform sampler2DMS uAccumTexture;
uniform sampler2DMS uWeightTexture;
THE_SHADER_IN vec2 TexCoord;
void main()
{
ivec2 aTexel = ivec2 (textureSize (uAccumTexture) * TexCoord);
vec4 aAccum = texelFetch (uAccumTexture, aTexel, gl_SampleID);
float aWeight = texelFetch (uWeightTexture, aTexel, gl_SampleID).r;
occSetFragColor (vec4 (aAccum.rgb / max (aWeight, 0.00001), aAccum.a));
}
21:50 TKOpenGl | Type: Error | ID: 0 | Severity: High | Message:
Failed to compile shader object. Compilation log:
ERROR: 0:268: '*' : wrong operand types no operation '*' exists that takes a left-hand operand of type '2-component vector of int' and a right operand of type 'varying 2-component vector of float' (or there is no acceptable conversion)
ERROR: 0:269: 'gl_SampleID' : requires extension GL_OES_sample_variables to be enabled
ERROR: 0:270: 'gl_SampleID' : requires extension GL_OES_sample_variables to be enabled
ERROR: 3 compilation errors. No code generated.
21:50 TKOpenGl | Type: Error | ID: 0 | Severity: High | Message:
Initialization of OIT compositing pass has failed.
Blended order-independent transparency will not be available.
21:50 TKOpenGl | Type: Error | ID: 0 | Severity: High | Message:
Initialization of OIT compositing pass has failed.
Blended order-independent transparency will not be available.
on the following device:
21:49 EGLVersion: 1.4 Android META-EGL
EGLVendor: Android
EGLClientAPIs: OpenGL_ES
GLvendor: Qualcomm
GLdevice: Adreno (TM) 530
GLversion: OpenGL ES 3.2 V@145.0 (GIT@I25dc76dc3f) [GLSL: OpenGL ES GLSL ES 3.20]
Max texture size: 16384
Max combined texture units: 96
Max MSAA samples: 4
Viewport: 2048x1488
Display scale: 1.7
Steps to reproduce
N/A
Public activity
4 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Wed Feb 14 22:58:34 2018 +0300
0029509: Visualization, TKOpenGl - Weighted OIT + MSAA shader compilation errors
Fix implicit cast ivec2->vec2 and specify GLSL version to "320 es" on appropriate devices.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Wed Feb 14 22:58:34 2018 +0300
0029509: Visualization, TKOpenGl - Weighted OIT + MSAA shader compilation errors
Fix implicit cast ivec2->vec2 and specify GLSL version to "320 es" on appropriate devices.
Combination -
OCCT branch : [archived branch] SHA - [revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian70-64:
OCCT
Total CPU difference: 18311.50999999956 / 18375.13999999976 [-0.35%]
Products
Total CPU difference: 7506.52999999997 / 7504.889999999995 [+0.02%]
Windows-64-VC10:
OCCT
Total CPU difference: 17691.667807398586 / 17692.572613198507 [-0.01%]
Products
Total CPU difference: 8027.889460499976 / 8097.855908999923 [-0.86%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
OCCT branch : [archived branch] SHA - [revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian70-64:
OCCT
Total CPU difference: 18311.50999999956 / 18375.13999999976 [-0.35%]
Products
Total CPU difference: 7506.52999999997 / 7504.889999999995 [+0.02%]
Windows-64-VC10:
OCCT
Total CPU difference: 17691.667807398586 / 17692.572613198507 [-0.01%]
Products
Total CPU difference: 8027.889460499976 / 8097.855908999923 [-0.86%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
Branch [archived branch] has been deleted by Author.
[revision removed]
[revision removed]
Related records