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

Issue 6295092: Support for serializing a linked program to binary. (Closed)

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

Description

Support for serializing a linked program to binary. The format has a text section followed by a binary section. The binary section contains an image of the device caps and the two shader executables. The text section has everything else newline deliminated. Ran WebGL conformance tests with temporary change to glLinkProgram that round trips all linked programs through glGetProgramBinary and glProgramBinary. No regressions. Committed: https://code.google.com/p/angleproject/source/detail?r=1199

Patch Set 1 : #

Total comments: 9

Patch Set 2 : Support for serializing a linked program to binary. #

Total comments: 2

Patch Set 3 : Support for serializing a linked program to binary. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -11 lines) Patch
M src/common/version.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/libGLESv2/Program.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M src/libGLESv2/Program.cpp View 1 2 2 chunks +22 lines, -2 lines 0 comments Download
M src/libGLESv2/ProgramBinary.h View 1 2 4 chunks +14 lines, -0 lines 0 comments Download
M src/libGLESv2/ProgramBinary.cpp View 1 2 3 chunks +292 lines, -0 lines 0 comments Download
M src/libGLESv2/libGLESv2.cpp View 1 2 4 chunks +7 lines, -7 lines 0 comments Download
M src/libGLESv2/libGLESv2.def View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13
apatrick1
Daniel, Please review. Thanks. Al
13 years, 2 months ago (2012-06-15 22:35:57 UTC) #1
dgkoch
Do you really want to have text-based stuff at the beginning? It seems like it ...
13 years, 2 months ago (2012-06-19 21:10:15 UTC) #2
apatrick1
https://codereview.appspot.com/6295092/diff/6001/src/libGLESv2/ProgramBinary.cpp File src/libGLESv2/ProgramBinary.cpp (right): https://codereview.appspot.com/6295092/diff/6001/src/libGLESv2/ProgramBinary.cpp#newcode1596 src/libGLESv2/ProgramBinary.cpp:1596: bool ProgramBinary::load(const void *binary, GLsizei length) On 2012/06/19 21:10:15, ...
13 years, 2 months ago (2012-06-19 21:27:24 UTC) #3
apatrick1
On 2012/06/19 21:10:15, dgkoch wrote: > Do you really want to have text-based stuff at ...
13 years, 2 months ago (2012-06-19 21:34:25 UTC) #4
apatrick1
> > What are Uniform values set to when a binary is loaded? > > ...
13 years, 2 months ago (2012-06-19 22:02:06 UTC) #5
dgkoch
On 2012/06/19 21:34:25, apatrick1 wrote: > On 2012/06/19 21:10:15, dgkoch wrote: > > Do you ...
13 years, 2 months ago (2012-06-20 14:30:26 UTC) #6
dgkoch
On 2012/06/19 22:02:06, apatrick1 wrote: > > > What are Uniform values set to when ...
13 years, 2 months ago (2012-06-20 14:31:19 UTC) #7
apatrick1
How about the issue of identifying the device and driver and using D3DADAPTER_IDENTIFIER9::DeviceIdentifier for that ...
13 years, 2 months ago (2012-06-20 17:59:02 UTC) #8
dgkoch
On 2012/06/20 17:59:02, apatrick1 wrote: > How about the issue of identifying the device and ...
13 years, 2 months ago (2012-06-20 18:23:00 UTC) #9
apatrick1
Support for serializing a linked program to binary. The format has a text section followed ...
13 years, 1 month ago (2012-06-28 21:42:55 UTC) #10
apatrick1
I addressed the issues and also added getProgramBinaryLength to Program. WebGL conformance tests did not ...
13 years, 1 month ago (2012-06-28 21:44:52 UTC) #11
dgkoch
LGTM https://codereview.appspot.com/6295092/diff/15001/src/libGLESv2/libGLESv2.cpp File src/libGLESv2/libGLESv2.cpp (right): https://codereview.appspot.com/6295092/diff/15001/src/libGLESv2/libGLESv2.cpp#newcode4623 src/libGLESv2/libGLESv2.cpp:4623: // FIXME: This is a hack for testing. ...
13 years, 1 month ago (2012-07-05 03:26:37 UTC) #12
apatrick1
13 years, 1 month ago (2012-07-09 22:14:31 UTC) #13
Support for serializing a linked program to binary.

The format has a text section followed by a binary section. The binary section
contains an image of the device caps and the two shader executables. The text
section has everything else newline deliminated.

Ran WebGL conformance tests with temporary change to glLinkProgram that round
trips all linked programs through glGetProgramBinary and glProgramBinary. No
regressions.
Sign in to reply to this message.

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