Bug 114636 - [CSS Shaders] Add a test with a vertex, fragment shader pair that compiles but don't link
Summary: [CSS Shaders] Add a test with a vertex, fragment shader pair that compiles bu...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Michelangelo De Simone
URL:
Keywords:
Depends on:
Blocks: 71392
  Show dependency treegraph
 
Reported: 2013-04-15 14:04 PDT by Max Vujovic
Modified: 2013-04-16 17:06 PDT (History)
3 users (show)

See Also:


Attachments
Patch (3.70 KB, patch)
2013-04-16 14:58 PDT, Michelangelo De Simone
no flags Details | Formatted Diff | Diff
Patch (3.24 KB, patch)
2013-04-16 15:20 PDT, Michelangelo De Simone
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Max Vujovic 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.
Comment 1 Michelangelo De Simone 2013-04-16 14:58:43 PDT
Created attachment 198437 [details]
Patch
Comment 2 Max Vujovic 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"?
Comment 3 Michelangelo De Simone 2013-04-16 15:20:24 PDT
Created attachment 198442 [details]
Patch
Comment 4 WebKit Commit Bot 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>
Comment 5 WebKit Commit Bot 2013-04-16 17:06:14 PDT
All reviewed patches have been landed.  Closing bug.