RESOLVED INVALID 119473
[CSS Shaders] Validated fragment shaders do too much math
https://bugs.webkit.org/show_bug.cgi?id=119473
Summary [CSS Shaders] Validated fragment shaders do too much math
Ralph T
Reported 2013-08-03 17:42:22 PDT
A trivial CSS fragment shader (empty css_main) performs a mat4 * vec4, at least one vec4 * vec4 and a bunch of things that look like mix. I'd like to: 1. not multiply by css_ColorMatrix unless css_main writes it. 2. add a compositing/blending fast path for some combination of modes. My goal is to do vertex-based lighting with a fragment shader that looks more like: gl_FragColor = texture2D(css_u_texture, css_v_texCoord) * css_MixColor; (1) is easy enough to detect. Is there a combination of compositing and blending that equates to the above shader (or something close to it)? (My motivation is that the current generated shaders run very slowly on IMGTEC SGX GPUs, which generally don't want to do much fragment math).
Attachments
Note You need to log in before you can comment on or make changes to this bug.