WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
126926
[WebGL] WebGLRenderingContext::validateCompressedTexDimensions Improperly Calculates Values
https://bugs.webkit.org/show_bug.cgi?id=126926
Summary
[WebGL] WebGLRenderingContext::validateCompressedTexDimensions Improperly Cal...
Brent Fulgham
Reported
2014-01-13 12:22:31 PST
The logic in WebGLRenderingContext::validateCompressedTexDimensions is overly permissive. For example, it claims that 256x256 is a valid set of dimensions for a 1x1 buffer.
Attachments
Patch
(4.94 KB, patch)
2014-01-14 17:49 PST
,
Brent Fulgham
dino
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2014-01-14 16:34:03 PST
<
rdar://problem/15818118
>
Brent Fulgham
Comment 2
2014-01-14 16:52:03 PST
Part of the problem is that it doesn't actually validate that the dimensions are correct, just that they are even multiples of the compression block size.
Brent Fulgham
Comment 3
2014-01-14 17:49:27 PST
Created
attachment 221218
[details]
Patch
Dean Jackson
Comment 4
2014-01-14 17:52:44 PST
Comment on
attachment 221218
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=221218&action=review
> Source/WebCore/html/canvas/WebGLRenderingContext.cpp:5391 > + const GC3Dint maxTextureSize = (target) ? m_maxTextureSize : m_maxCubeMapTextureSize;
No need for ()
Brent Fulgham
Comment 5
2014-01-14 17:59:42 PST
Committed
r162031
: <
http://trac.webkit.org/changeset/162031
>
Simon Fraser (smfr)
Comment 6
2014-01-14 23:09:37 PST
Still seeing some test output diffs:
http://build.webkit.org/results/Apple%20Mavericks%20Release%20WK2%20(Tests)/r162050%20(2225)/fast/canvas/webgl/webgl-compressed-texture-size-limit-pretty-diff.html
Brent Fulgham
Comment 7
2014-01-15 09:06:08 PST
(In reply to
comment #6
)
> Still seeing some test output diffs: >
http://build.webkit.org/results/Apple%20Mavericks%20Release%20WK2%20(Tests)/r162050%20(2225)/fast/canvas/webgl/webgl-compressed-texture-size-limit-pretty-diff.html
I added a ML baseline for the difference in driver error output.
Brent Fulgham
Comment 8
2014-01-15 09:06:40 PST
ML Rebaseline in
https://trac.webkit.org/r162070
.
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