BlamKiwi / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

Support more GLSL output versions from the shader translators #1044

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the shader translator only supports GLSL version 130, 150, 410 and 
420.  Update it to support as many GLSL versions as possible so that the GL 
renderer can support ES3 on the lowest possible GL version.

Original issue reported on code.google.com by geofflang@chromium.org on 15 Jun 2015 at 6:00

GoogleCodeExporter commented 9 years ago

Original comment by geofflang@chromium.org on 15 Jun 2015 at 6:00

GoogleCodeExporter commented 9 years ago

Original comment by geofflang@chromium.org on 15 Jun 2015 at 6:00

GoogleCodeExporter commented 9 years ago
The following revision refers to this bug:
  https://chromium.googlesource.com/angle/angle/+/a80d40467881760400c6a0c980a317d47a86c4e1

commit a80d40467881760400c6a0c980a317d47a86c4e1
Author: Geoff Lang <geofflang@chromium.org>
Date: Mon Jun 15 18:44:30 2015

Document ESSL3 builtin functions and which GLSL version they became core in.

BUG=angleproject:1044

Change-Id: I1cd35f17a2d6cc384ac1bfae72a23a092ca50244
Reviewed-on: https://chromium-review.googlesource.com/277701
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@google.com>
Tested-by: Geoff Lang <geofflang@chromium.org>

[modify] 
http://crrev.com/a80d40467881760400c6a0c980a317d47a86c4e1/src/libANGLE/renderer/
gl/FeatureSupportGL.md

Original comment by bugdroid1@chromium.org on 16 Jun 2015 at 8:56

GoogleCodeExporter commented 9 years ago
The following revision refers to this bug:
  https://chromium.googlesource.com/angle/angle/+/7b9b284b5d4e05700d415b40c009e414d1e6825b

commit 7b9b284b5d4e05700d415b40c009e414d1e6825b
Author: Geoff Lang <geofflang@chromium.org>
Date: Mon Jun 15 18:02:49 2015

Refactor GLSL version calculations for emulated functions.

Pass the target GLSL version to InitBuiltInFunctionEmulatorForGLSL so that
it can be updated to generate emulated functions for multiple versions.

BUG=angleproject:1044

Change-Id: I34c408df52fd0f7d6c2f66d0579ac854afd93b87
Reviewed-on: https://chromium-review.googlesource.com/277700
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>

[modify] 
http://crrev.com/7b9b284b5d4e05700d415b40c009e414d1e6825b/src/compiler/translato
r/VersionGLSL.cpp
[modify] 
http://crrev.com/7b9b284b5d4e05700d415b40c009e414d1e6825b/src/compiler/translato
r/VersionGLSL.h
[modify] 
http://crrev.com/7b9b284b5d4e05700d415b40c009e414d1e6825b/src/compiler/translato
r/TranslatorESSL.cpp
[modify] 
http://crrev.com/7b9b284b5d4e05700d415b40c009e414d1e6825b/src/compiler/translato
r/BuiltInFunctionEmulatorGLSL.cpp
[modify] 
http://crrev.com/7b9b284b5d4e05700d415b40c009e414d1e6825b/src/compiler/translato
r/BuiltInFunctionEmulatorGLSL.h
[modify] 
http://crrev.com/7b9b284b5d4e05700d415b40c009e414d1e6825b/src/compiler/translato
r/TranslatorGLSL.cpp

Original comment by bugdroid1@chromium.org on 23 Jun 2015 at 2:55

GoogleCodeExporter commented 9 years ago
The following revision refers to this bug:
  https://chromium.googlesource.com/angle/angle/+/83ab236ff5ab5e56820a02287d82a9be322507b5

commit 83ab236ff5ab5e56820a02287d82a9be322507b5
Author: Geoff Lang <geofflang@chromium.org>
Date: Tue Jun 23 17:18:03 2015

Improve the test precision in PackUnpackTest.

 * Output to floating point framebuffers so that results are not truncated
   to 8 bit normalized values.
 * Tighten the epsilon from 1/255 to 0.0005. May need further tweaking as
   more GPUs are tested.
 * Explicitly check for -inf and inf values when they were previously
   rounded to 0 and 255.
 * Explicitly check for clamping of overflowed normalized floats by
   providing the expectations instead of computing them.

BUG=angleproject:1044

Change-Id: I8410cf61fe79a9919fb0db7e415bf97b2d0abd9e
Reviewed-on: https://chromium-review.googlesource.com/281191
Reviewed-by: Olli Etuaho <oetuaho@nvidia.com>
Tested-by: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>

[modify] 
http://crrev.com/83ab236ff5ab5e56820a02287d82a9be322507b5/src/tests/gl_tests/Pac
kUnpackTest.cpp

Original comment by bugdroid1@chromium.org on 29 Jun 2015 at 2:17

GoogleCodeExporter commented 9 years ago
The following revision refers to this bug:
  https://chromium.googlesource.com/angle/angle/+/8273e006fe944771530d0f3907ba285b9d83a694

commit 8273e006fe944771530d0f3907ba285b9d83a694
Author: Geoff Lang <geofflang@chromium.org>
Date: Mon Jun 15 20:40:19 2015

Add new GLSL target versions.

Test the emulated GLSL functions against multiple GL versions.

BUG=angleproject:1044

Change-Id: I1e12523301042f0d541ab2f4e73f02319d1584ef
Reviewed-on: https://chromium-review.googlesource.com/277702
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>

[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/compiler/translato
r/VersionGLSL.cpp
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/libANGLE/renderer/
gl/RendererGL.cpp
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/include/GLSLANG/Shader
Lang.h
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/tests/gl_tests/Pac
kUnpackTest.cpp
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/compiler/translato
r/Compiler.cpp
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/libANGLE/renderer/
gl/CompilerGL.cpp
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/compiler/translato
r/CodeGen.cpp
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/compiler/translato
r/BuiltInFunctionEmulatorGLSL.cpp
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/compiler/translato
r/VersionGLSL.h
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/tests/test_utils/a
ngle_test_configs.cpp
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/libANGLE/renderer/
gl/CompilerGL.h
[modify] 
http://crrev.com/8273e006fe944771530d0f3907ba285b9d83a694/src/tests/test_utils/a
ngle_test_configs.h

Original comment by bugdroid1@chromium.org on 29 Jun 2015 at 5:29

GoogleCodeExporter commented 9 years ago
The following revision refers to this bug:
  https://chromium.googlesource.com/angle/angle/+/2a46b4e82bb9093945c8dcac0a9fa3c9f52a0360

commit 2a46b4e82bb9093945c8dcac0a9fa3c9f52a0360
Author: Geoff Lang <geofflang@chromium.org>
Date: Mon Jun 29 19:06:49 2015

Remove the PackUnpackHalfOverflow test.

Different drivers handle overflow differently.  The overflow case is not
defined in the spec.

BUG=angleproject:1044

Change-Id: I9e3883af147c6c1a4fcdcddea3ff70c62f859c56
Reviewed-on: https://chromium-review.googlesource.com/282540
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>

[modify] 
http://crrev.com/2a46b4e82bb9093945c8dcac0a9fa3c9f52a0360/src/tests/gl_tests/Pac
kUnpackTest.cpp

Original comment by bugdroid1@chromium.org on 29 Jun 2015 at 7:12