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

Issue 6822077: Interface design for user-defined name hashing. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by Zhenyao Mo
Modified:
12 years, 1 month ago
CC:
angleproject-review_googlegroups.com, gmanchromium
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Interface design for user-defined name hashing. 1) We use BuiltInResources to pass the hash function to ANGLE, deciding whether we applies hash function or not. 2) We use 64 bits hashing function, because 64 bits is 16 bytes using hex representation, plus the "webgl_" prefix, we can keep the names under 128 (WebGL allows 5 levels of nesting in structures). If chooseing 128 bits, we will go beyond 128 characters, and some drivers can't handle that safely. ANGLEBUG=315 Committed: https://code.google.com/p/angleproject/source/detail?r=1384

Patch Set 1 : #

Total comments: 20

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -5 lines) Patch
M include/GLSLANG/ShaderLang.h View 1 2 3 4 5 7 chunks +39 lines, -2 lines 0 comments Download
M src/build_angle.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/common/version.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/Compiler.cpp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A src/compiler/HashNames.h View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
M src/compiler/ShHandle.h View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download
M src/compiler/ShaderLang.cpp View 1 2 3 4 5 3 chunks +62 lines, -0 lines 0 comments Download
M src/compiler/translator_common.vcxproj View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M src/compiler/translator_common.vcxproj.filters View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 20
Zhenyao Mo
Ken, Bonoit: please have a look and let me know if this interface is reasonable.
12 years, 1 month ago (2012-11-02 19:38:02 UTC) #1
kbr1
+alokp and gman for additional review of API Correcting (I believe) Benoit's email address https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h ...
12 years, 1 month ago (2012-11-02 23:25:11 UTC) #2
Zhenyao Mo
Thanks for reviewing this. I'll wait until I gather all the comments to do the ...
12 years, 1 month ago (2012-11-02 23:42:51 UTC) #3
bjacob
2012/11/2 <kbr@chromium.org>: > +alokp and gman for additional review of API > Correcting (I believe) ...
12 years, 1 month ago (2012-11-03 00:13:10 UTC) #4
kbr1
On 2012/11/03 00:13:10, bjacob wrote: > If the hash tables were properties of the program ...
12 years, 1 month ago (2012-11-03 00:54:09 UTC) #5
kbr1
https://codereview.appspot.com/6822077/diff/4009/src/compiler/ShaderLang.cpp File src/compiler/ShaderLang.cpp (right): https://codereview.appspot.com/6822077/diff/4009/src/compiler/ShaderLang.cpp#newcode239 src/compiler/ShaderLang.cpp:239: *params = 16 + sizeof(HashedNamePrefix); On 2012/11/02 23:25:12, kbr1 ...
12 years, 1 month ago (2012-11-03 00:54:44 UTC) #6
dgkoch
https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h#newcode125 include/GLSLANG/ShaderLang.h:125: SH_HASHED_NAMES_COUNT = 0x8B8E, Don't leave a trailing comma. Some ...
12 years, 1 month ago (2012-11-03 17:30:26 UTC) #7
Alok Priyadarshi
A few nits. https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h#newcode26 include/GLSLANG/ShaderLang.h:26: #if !defined(uint64) rename it to sh_uint64? ...
12 years, 1 month ago (2012-11-06 17:24:32 UTC) #8
Zhenyao Mo
On 2012/11/03 00:54:44, kbr1 wrote: > https://codereview.appspot.com/6822077/diff/4009/src/compiler/ShaderLang.cpp > File src/compiler/ShaderLang.cpp (right): > > https://codereview.appspot.com/6822077/diff/4009/src/compiler/ShaderLang.cpp#newcode239 > ...
12 years, 1 month ago (2012-11-06 18:42:10 UTC) #9
bjacob
2012/11/6 <zmo@chromium.org>: > On 2012/11/03 00:54:44, kbr1 wrote: > > https://codereview.appspot.com/6822077/diff/4009/src/compiler/ShaderLang.cpp >> >> File src/compiler/ShaderLang.cpp ...
12 years, 1 month ago (2012-11-06 19:12:30 UTC) #10
Zhenyao Mo
On 2012/11/06 19:12:30, bjacob wrote: > 2012/11/6 <zmo@chromium.org>: > > On 2012/11/03 00:54:44, kbr1 wrote: ...
12 years, 1 month ago (2012-11-06 19:18:56 UTC) #11
dgkoch
https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h#newcode26 include/GLSLANG/ShaderLang.h:26: #if !defined(uint64) On 2012/11/06 17:24:32, Alok Priyadarshi wrote: > ...
12 years, 1 month ago (2012-11-06 21:09:20 UTC) #12
Zhenyao Mo
https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h#newcode26 include/GLSLANG/ShaderLang.h:26: #if !defined(uint64) On 2012/11/06 21:09:20, dgkoch wrote: > On ...
12 years, 1 month ago (2012-11-06 21:27:53 UTC) #13
Zhenyao Mo
https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/6822077/diff/4009/include/GLSLANG/ShaderLang.h#newcode121 include/GLSLANG/ShaderLang.h:121: SH_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A, Per offline discussion with Daniel, we ...
12 years, 1 month ago (2012-11-06 21:38:11 UTC) #14
Zhenyao Mo
OK, thank you all for the comments. I think I addressed all the questions and ...
12 years, 1 month ago (2012-11-06 21:40:18 UTC) #15
Alok Priyadarshi
https://codereview.appspot.com/6822077/diff/12001/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/6822077/diff/12001/include/GLSLANG/ShaderLang.h#newcode26 include/GLSLANG/ShaderLang.h:26: #include "KHR/khrplatform.h" We have so far tried to keep ...
12 years, 1 month ago (2012-11-06 22:07:02 UTC) #16
kbr1
LGTM. A few minor comments and questions. https://codereview.appspot.com/6822077/diff/12001/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/6822077/diff/12001/include/GLSLANG/ShaderLang.h#newcode26 include/GLSLANG/ShaderLang.h:26: #include "KHR/khrplatform.h" ...
12 years, 1 month ago (2012-11-06 22:33:58 UTC) #17
Zhenyao Mo
Revised, please have one more look. https://codereview.appspot.com/6822077/diff/12001/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/6822077/diff/12001/include/GLSLANG/ShaderLang.h#newcode115 include/GLSLANG/ShaderLang.h:115: SH_MAPPED_NAME_MAX_LENGTH = 0x8B8B, ...
12 years, 1 month ago (2012-11-06 23:20:51 UTC) #18
kbr1
LGTM again.
12 years, 1 month ago (2012-11-06 23:22:57 UTC) #19
Zhenyao Mo
12 years, 1 month ago (2012-11-07 00:18:59 UTC) #20
Interface design for user-defined name hashing.

1) We use BuiltInResources to pass the hash function to 
   ANGLE, deciding whether we applies hash function or not.
2) We use 64 bits hashing function, because 64 bits is 16
   bytes using hex representation, plus the "webgl_" prefix,
   we can keep the names under 128 (WebGL allows 5 levels of
   nesting in structures).  If chooseing 128 bits, we will
   go beyond 128 characters, and some drivers can't handle
   that safely.

ANGLEBUG=315
Sign in to reply to this message.

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