⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 281547 in webkit


Ignore:
Timestamp:
Aug 24, 2021, 11:04:26 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

ANGLE Metal infinities and NaNs generated with incorrect syntax
https://bugs.webkit.org/show_bug.cgi?id=229439
<rdar://81033366>

Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-08-24
Reviewed by Dean Jackson.

Source/ThirdParty/ANGLE:

Generate NaN and infinity constant values correctly.
An else was missing from if-block, causing double processing.

  • src/compiler/translator/TranslatorMetalDirect/EmitMetal.cpp:

(GenMetalTraverser::emitSingleConstant):

  • src/libANGLE/renderer/metal/mtl_utils.mm:

(rx::mtl::CreateShaderLibrary):

LayoutTests:

Add tests that test some aspects of NaN and -+inf that the GLSL ES 3.00 spec
talks about.

  • webgl/pending/conformance2/glsl3/float-constant-expressions-expected.txt: Added.
  • webgl/pending/conformance2/glsl3/float-constant-expressions.html: Added.
  • webgl/pending/resources/webgl_test_files/conformance2/glsl3/float-constant-expressions.html: Added.
  • webgl/pending/resources/webgl_test_files/js/glsl-conformance-test.js: Added.
Location:
trunk
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r281546 r281547  
     12021-08-24  Kimmo Kinnunen  <kkinnunen@apple.com>
     2
     3        ANGLE Metal infinities and NaNs generated with incorrect syntax
     4        https://bugs.webkit.org/show_bug.cgi?id=229439
     5        <rdar://81033366>
     6
     7        Reviewed by Dean Jackson.
     8
     9        Add tests that test some aspects of NaN and -+inf that the GLSL ES 3.00 spec
     10        talks about.
     11
     12        * webgl/pending/conformance2/glsl3/float-constant-expressions-expected.txt: Added.
     13        * webgl/pending/conformance2/glsl3/float-constant-expressions.html: Added.
     14        * webgl/pending/resources/webgl_test_files/conformance2/glsl3/float-constant-expressions.html: Added.
     15        * webgl/pending/resources/webgl_test_files/js/glsl-conformance-test.js: Added.
     16
    1172021-08-24  Fujii Hironori  <Hironori.Fujii@sony.com>
    218
  • trunk/Source/ThirdParty/ANGLE/ChangeLog

    r281160 r281547  
     12021-08-24  Kimmo Kinnunen  <kkinnunen@apple.com>
     2
     3        ANGLE Metal infinities and NaNs generated with incorrect syntax
     4        https://bugs.webkit.org/show_bug.cgi?id=229439
     5        <rdar://81033366>
     6
     7        Reviewed by Dean Jackson.
     8
     9        Generate NaN and infinity constant values correctly.
     10        An else was missing from if-block, causing double processing.
     11
     12        * src/compiler/translator/TranslatorMetalDirect/EmitMetal.cpp:
     13        (GenMetalTraverser::emitSingleConstant):
     14        * src/libANGLE/renderer/metal/mtl_utils.mm:
     15        (rx::mtl::CreateShaderLibrary):
     16
    1172021-08-17  David Kilzer  <ddkilzer@apple.com>
    218
  • trunk/Source/ThirdParty/ANGLE/src/compiler/translator/TranslatorMetalDirect/EmitMetal.cpp

    r279606 r281547  
    15021502                mOut << "NAN";
    15031503            }
    1504             if (ANGLE_UNLIKELY(isinf(constUnion->getFConst())))
     1504            else if (ANGLE_UNLIKELY(isinf(constUnion->getFConst())))
    15051505            {
    15061506                if(constUnion->getFConst() < 0)
Note: See TracChangeset for help on using the changeset viewer.