Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Issue 2549623002: Add layout qualifiers to compositor shaders (Closed)

Created:
4 years ago by enne (OOO)
Modified:
3 years, 10 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, Kai Ninomiya, csmartdalton, oetuaho-nv, Kimmo Kinnunen, bsalomon_chromium, qiankun, yunchao
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add layout qualifiers to compositor shaders KHR_blend_equation_advanced requires layout qualifiers on the out parameters from fragment shaders. This also switches from using gl_FragColor to explicit out parameters everywhere. This can't be landed without changes further down the shader compilation pipeline. BUG=661715 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Patch Set 1 #

Patch Set 2 : Fix weird formatting #

Patch Set 3 : Add require line #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -29 lines) Patch
M cc/output/shader.cc View 1 2 25 chunks +63 lines, -29 lines 1 comment Download

Messages

Total messages: 10 (2 generated)
enne (OOO)
kbr: I think this should do the trick, although it's hard to test since no ...
4 years ago (2016-12-01 19:45:57 UTC) #2
Ken Russell (switch to Gerrit)
I think there's another problem here. KHR_blend_equation_advanced requires these new layout qualifiers, but NV_blend_equation_advanced doesn't ...
4 years ago (2016-12-02 02:22:22 UTC) #4
kkinnunennvidia (do not use)
On 2016/12/02 02:22:22, Ken Russell wrote: > feature_info.cc seems to treat the NV and KHR ...
4 years ago (2016-12-02 06:56:45 UTC) #5
Ken Russell (switch to Gerrit)
On 2016/12/02 06:56:45, kkinnunennvidia (do not use) wrote: > On 2016/12/02 02:22:22, Ken Russell wrote: ...
4 years ago (2016-12-02 08:04:11 UTC) #6
bsalomon
On 2016/12/02 08:04:11, Ken Russell wrote: > On 2016/12/02 06:56:45, kkinnunennvidia (do not use) wrote: ...
4 years ago (2016-12-02 14:21:46 UTC) #7
enne (OOO)
> > I think we also need to emit an #extension directive at the top ...
4 years ago (2016-12-02 18:25:33 UTC) #8
Ken Russell (switch to Gerrit)
On 2016/12/02 18:25:33, enne_out_til_january wrote: > > > I think we also need to emit ...
4 years ago (2016-12-05 05:44:29 UTC) #9
Ken Russell (switch to Gerrit)
4 years ago (2016-12-05 05:44:33 UTC) #10
https://codereview.chromium.org/2549623002/diff/40001/cc/output/shader.cc
File cc/output/shader.cc (right):

https://codereview.chromium.org/2549623002/diff/40001/cc/output/shader.cc#new...
cc/output/shader.cc:824: "#extension GL_KHR_blend_equation_advanced : require\n"
I'm pretty sure this extension directive has to come at the beginning of the
shader. Will that happen with the code as written?

Powered by Google App Engine
This is Rietveld 408576698