Bug 42032 - Need to emulate MAX_VARYING_VECTORS/MAX_FRAGMENT_UNIFORM_VECTORs/MAX_VERTEX_UNIFORM_VECTORS for glGet
Summary: Need to emulate MAX_VARYING_VECTORS/MAX_FRAGMENT_UNIFORM_VECTORs/MAX_VERTEX_U...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Zhenyao Mo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-10 15:13 PDT by Zhenyao Mo
Modified: 2010-07-13 10:23 PDT (History)
7 users (show)

See Also:


Attachments
patch (5.35 KB, patch)
2010-07-10 15:18 PDT, Zhenyao Mo
fishd: review+
zmo: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zhenyao Mo 2010-07-10 15:13:58 PDT
In desktop gl, the corresponding enums are MAX_VARYING_FLOATS/MAX_FRAGMENT_UNIFORM_COMPONENTS/MAX_VERTEX_UNIFORM_COMPONENTS.

The difference is a multitude of 4.
Comment 1 Zhenyao Mo 2010-07-10 15:18:11 PDT
Created attachment 61162 [details]
patch
Comment 2 Kenneth Russell 2010-07-12 17:13:08 PDT
Comment on attachment 61162 [details]
patch

Looks good to me.
Comment 3 Darin Fisher (:fishd, Google) 2010-07-12 20:22:28 PDT
Comment on attachment 61162 [details]
patch

WebCore/platform/graphics/mac/GraphicsContext3DMac.mm:1229
 +          *value /= 4;
nit: you should explain this factor of 4 in the ChangeLog.  desktop GL returns
byte counts or something, and GLES2 needs to return 32bit word counts?

R=me
Comment 4 Zhenyao Mo 2010-07-13 08:55:10 PDT
(In reply to comment #3)
> (From update of attachment 61162 [details])
> WebCore/platform/graphics/mac/GraphicsContext3DMac.mm:1229
>  +          *value /= 4;
> nit: you should explain this factor of 4 in the ChangeLog.  desktop GL returns
> byte counts or something, and GLES2 needs to return 32bit word counts?
> 
> R=me

Will add a comment in the landing patch.
Comment 5 Zhenyao Mo 2010-07-13 09:52:14 PDT
Committed r63215: <http://trac.webkit.org/changeset/63215>
Comment 6 WebKit Review Bot 2010-07-13 10:23:46 PDT
http://trac.webkit.org/changeset/63215 might have broken GTK Linux 64-bit Debug
The following changes are on the blame list:
http://trac.webkit.org/changeset/63216
http://trac.webkit.org/changeset/63215