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

Changeset 284849 in webkit


Ignore:
Timestamp:
Oct 25, 2021, 4:41:45 PM (5 years ago)
Author:
Kyle Piddington
Message:

REGRESSION (iOS 15), safari604.1: Could not link the shader program
https://bugs.webkit.org/show_bug.cgi?id=231475

Renaming regex incorrectly substituted an attribute.
Update to require exact attribute match

Source/ThirdParty/ANGLE:

Reviewed by Dean Jackson

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

(rx::mtl::updateShaderAttributes):

LayoutTests:

Add test to expose bug, verify test passes

Reviewed by Dean Jackson.

  • fast/canvas/webgl/attrib-name-aliasing-bug-expected.txt: Added.
  • fast/canvas/webgl/attrib-name-aliasing-bug.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r284848 r284849  
     12021-10-25  Kyle Piddington  <kpiddington@apple.com>
     2
     3        REGRESSION (iOS 15), safari604.1: Could not link the shader program
     4        https://bugs.webkit.org/show_bug.cgi?id=231475
     5
     6        Renaming regex incorrectly substituted an attribute.
     7        Update to require exact attribute match
     8
     9        Add test to expose bug, verify test passes
     10
     11        Reviewed by Dean Jackson.
     12
     13        * fast/canvas/webgl/attrib-name-aliasing-bug-expected.txt: Added.
     14        * fast/canvas/webgl/attrib-name-aliasing-bug.html: Added.
     15
    1162021-10-25  John Wilander  <wilander@apple.com>
    217
  • trunk/Source/ThirdParty/ANGLE/ChangeLog

    r284298 r284849  
     12021-10-25  Kyle Piddington  <kpiddington@apple.com>
     2
     3        REGRESSION (iOS 15), safari604.1: Could not link the shader program
     4        https://bugs.webkit.org/show_bug.cgi?id=231475
     5
     6        Renaming regex incorrectly substituted an attribute.
     7        Update to require exact attribute match
     8
     9        Reviewed by Dean Jackson
     10
     11        * src/libANGLE/renderer/metal/mtl_glslang_mtl_utils.mm:
     12        (rx::mtl::updateShaderAttributes):
     13
    1142021-10-15  Ross Kirsling  <ross.kirsling@sony.com>
    215
  • trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/mtl_glslang_mtl_utils.mm

    r284293 r284849  
    172172            {
    173173                stream.str("");
    174                 stream << attribute.name << "_" << std::to_string(i) << sh::kUnassignedAttributeString;
    175                 attributeBindings.insert({std::string(stream.str()), i+attribute.location});
     174                stream << " " << kUserDefinedNamePrefix << attribute.name << "_" << std::to_string(i)
     175                                       << sh::kUnassignedAttributeString;
     176                attributeBindings.insert({std::string(stream.str()), i + attribute.location});
    176177            }
    177178        }
     
    179180        {
    180181            stream.str("");
    181             stream << attribute.name << sh::kUnassignedAttributeString;
    182             attributeBindings.insert({std::string(stream.str()),attribute.location});
     182            stream << " " << kUserDefinedNamePrefix << attribute.name << sh::kUnassignedAttributeString;
     183            attributeBindings.insert({std::string(stream.str()), attribute.location});
    183184        }
    184185    }
Note: See TracChangeset for help on using the changeset viewer.