Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(429)

Issue 2341043: GLSL backend now emits "#version 120" to legally access glPointCoord. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by Alok Priyadarshi
Modified:
13 years, 8 months ago
Reviewers:
kbr1, dgkoch
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

GLSL backend now emits "#version 120" to legally access invariant keyword and gl_PointCoord built-in variable. BUG=35

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -1 line) Patch
M src/build_angle.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/ShHandle.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/TranslatorGLSL.cpp View 1 2 1 chunk +20 lines, -1 line 0 comments Download
A src/compiler/VersionGLSL.h View 1 chunk +50 lines, -0 lines 2 comments Download
A src/compiler/VersionGLSL.cpp View 1 chunk +108 lines, -0 lines 0 comments Download

Messages

Total messages: 16
Alok Priyadarshi
13 years, 8 months ago (2010-10-01 22:44:00 UTC) #1
dgkoch
http://codereview.appspot.com/2341043/diff/1/src/compiler/TranslatorGLSL.cpp File src/compiler/TranslatorGLSL.cpp (right): http://codereview.appspot.com/2341043/diff/1/src/compiler/TranslatorGLSL.cpp#newcode17 src/compiler/TranslatorGLSL.cpp:17: // which supports GLSL 1.5, it should be pretty ...
13 years, 8 months ago (2010-10-01 23:47:19 UTC) #2
kbr1
I am concerned about the potential compatibility impact of always writing this version directive, especially ...
13 years, 8 months ago (2010-10-02 00:51:25 UTC) #3
dgkoch
On 2010/10/02 00:51:25, kbr1 wrote: > I am concerned about the potential compatibility impact of ...
13 years, 8 months ago (2010-10-02 23:50:07 UTC) #4
Alok Priyadarshi
> Actually GL 2.0 only mandates GLSL version 1.10. It was GL 2.1 that mandated ...
13 years, 8 months ago (2010-10-04 20:26:49 UTC) #5
kbr1
On 2010/10/04 20:26:49, alokp wrote: > > Actually GL 2.0 only mandates GLSL version 1.10. ...
13 years, 8 months ago (2010-10-04 20:44:49 UTC) #6
kbr1
On 2010/10/02 23:50:07, dgkoch wrote: > On 2010/10/02 00:51:25, kbr1 wrote: > > I am ...
13 years, 8 months ago (2010-10-04 21:03:52 UTC) #7
Alok Priyadarshi
Yes I am not concerned about the stricter casting rules either. I scoured the change ...
13 years, 8 months ago (2010-10-05 19:01:29 UTC) #8
kbr1
On 2010/10/05 19:01:29, alokp wrote: > Yes I am not concerned about the stricter casting ...
13 years, 8 months ago (2010-10-05 19:22:46 UTC) #9
dgkoch
LGTM too (with updated comments). Might also be worth a courtesy note to any other ...
13 years, 8 months ago (2010-10-05 19:39:57 UTC) #10
Alok Priyadarshi
Updated comments. However one of the conformance tests started failing. My desktop GLSL compiler (NVIDIA ...
13 years, 8 months ago (2010-10-05 22:14:31 UTC) #11
kbr1
On 2010/10/05 22:14:31, alokp wrote: > Updated comments. > > However one of the conformance ...
13 years, 8 months ago (2010-10-05 23:55:36 UTC) #12
Alok Priyadarshi
Forgot to mention that I was testing this on my Windows 7 machine. I will ...
13 years, 8 months ago (2010-10-06 04:55:30 UTC) #13
Alok Priyadarshi
Now I write the version directive only if invariant qualifier or gl_PointCoord variable are used. ...
13 years, 8 months ago (2010-10-12 22:31:42 UTC) #14
kbr1
LGTM http://codereview.appspot.com/2341043/diff/16001/src/compiler/VersionGLSL.h File src/compiler/VersionGLSL.h (right): http://codereview.appspot.com/2341043/diff/16001/src/compiler/VersionGLSL.h#newcode29 src/compiler/VersionGLSL.h:29: // Returns 120 if "invariant" keyword of "gl_PointCoord" ...
13 years, 8 months ago (2010-10-13 01:15:31 UTC) #15
dgkoch
13 years, 8 months ago (2010-10-13 02:49:26 UTC) #16
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b