WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
39077
Map RGBA4/RGB5_A1 to RGBA and RGB565 to RGB in RenderbufferStorage
https://bugs.webkit.org/show_bug.cgi?id=39077
Summary
Map RGBA4/RGB5_A1 to RGBA and RGB565 to RGB in RenderbufferStorage
Zhenyao Mo
Reported
2010-05-13 11:05:13 PDT
The three supported internal color formats RGBA4/RGB5_A1/RGB565 may not be supported by Desktop OpenGL. We need to map them to general RGBA and RGB.
Attachments
patch
(6.98 KB, patch)
2010-05-13 14:16 PDT
,
Zhenyao Mo
no flags
Details
Formatted Diff
Diff
revised patch
(6.77 KB, patch)
2010-05-17 18:01 PDT
,
Zhenyao Mo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Zhenyao Mo
Comment 1
2010-05-13 14:16:00 PDT
Created
attachment 56021
[details]
patch The same mapping is also added to command buffer implementation in Google Chrome.
Kenneth Russell
Comment 2
2010-05-13 18:46:24 PDT
Comment on
attachment 56021
[details]
patch Should we do a similar reverse mapping for getRenderbufferParameter(RENDERBUFFER_INTERNAL_FORMAT) so we don't return enums that are undefined or illegal in the WebGL spec?
Zhenyao Mo
Comment 3
2010-05-14 15:55:06 PDT
(In reply to
comment #2
)
> (From update of
attachment 56021
[details]
) > Should we do a similar reverse mapping for getRenderbufferParameter(RENDERBUFFER_INTERNAL_FORMAT) so we don't return enums that are undefined or illegal in the WebGL spec?
I just checked and realized the code for reverse mapping is already in place (see WebGLRenderingContext::getRenderbufferParameter and WebGLRenderingContext::renderbufferStorage). It's added through this patch:
https://bugs.webkit.org/show_bug.cgi?id=35611
Kenneth Russell
Comment 4
2010-05-14 18:02:53 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 56021
[details]
[details]) > > Should we do a similar reverse mapping for getRenderbufferParameter(RENDERBUFFER_INTERNAL_FORMAT) so we don't return enums that are undefined or illegal in the WebGL spec? > > I just checked and realized the code for reverse mapping is already in place (see WebGLRenderingContext::getRenderbufferParameter and WebGLRenderingContext::renderbufferStorage). > > It's added through this patch:
https://bugs.webkit.org/show_bug.cgi?id=35611
Right, I'd forgotten all about that. Looks good to me.
Eric Seidel (no email)
Comment 5
2010-05-17 15:49:24 PDT
Comment on
attachment 56021
[details]
patch Why so much copy/paste code in the layout test?
Zhenyao Mo
Comment 6
2010-05-17 18:01:19 PDT
Created
attachment 56298
[details]
revised patch Reduced the code duplication in the test (responding to Eric Seidel's comment).
Dimitri Glazkov (Google)
Comment 7
2010-05-17 18:42:20 PDT
Comment on
attachment 56298
[details]
revised patch rs=me.
WebKit Commit Bot
Comment 8
2010-05-20 18:06:46 PDT
Comment on
attachment 56298
[details]
revised patch Clearing flags on attachment: 56298 Committed
r59888
: <
http://trac.webkit.org/changeset/59888
>
WebKit Commit Bot
Comment 9
2010-05-20 18:06:51 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug