Bug 114636

Summary: [CSS Shaders] Add a test with a vertex, fragment shader pair that compiles but don't link
Product: WebKit Reporter: Max Vujovic <mvujovic>
Component: Layout and RenderingAssignee: Michelangelo De Simone <michelangelo>
Status: RESOLVED FIXED    
Severity: Normal CC: achicu, commit-queue, michelangelo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 71392    
Attachments:
Description Flags
Patch
none
Patch none

Max Vujovic
Reported 2013-04-15 14:04:12 PDT
We should have a test in which a fragment shader tries to read from a varying that the vertex shader did not define. I suspect that this case works correctly, but we have an incorrect assertion that will get tripped.
Attachments
Patch (3.70 KB, patch)
2013-04-16 14:58 PDT, Michelangelo De Simone
no flags
Patch (3.24 KB, patch)
2013-04-16 15:20 PDT, Michelangelo De Simone
no flags
Michelangelo De Simone
Comment 1 2013-04-16 14:58:43 PDT
Max Vujovic
Comment 2 2013-04-16 15:17:02 PDT
Comment on attachment 198437 [details] Patch Looks great! Just a couple of nits. View in context: https://bugs.webkit.org/attachment.cgi?id=198437&action=review > LayoutTests/ChangeLog:7 > + don't lead to unexpected crashes due to linking errors. You might want to add that "The current implementation does not crash, and this test will verify that it doesn't crash in the future." > LayoutTests/css3/filters/custom/custom-filter-unavailable-varying.html:5 > + #ohmymy { Could you change this name to "#filter-target"? > LayoutTests/css3/filters/custom/custom-filter-unavailable-varying.html:9 > + -webkit-filter: custom(url('../resources/unavailable-varying.vs') mix(url('../resources/unavailable-varying.fs') normal source-atop)); Your vertex shader looks a lot like the implementation's default shader. Maybe you use the "none" keyword instead of "unavailable-varying.vs"?
Michelangelo De Simone
Comment 3 2013-04-16 15:20:24 PDT
WebKit Commit Bot
Comment 4 2013-04-16 17:06:11 PDT
Comment on attachment 198442 [details] Patch Clearing flags on attachment: 198442 Committed r148581: <http://trac.webkit.org/changeset/148581>
WebKit Commit Bot
Comment 5 2013-04-16 17:06:14 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.