Closed Bug 1266664 Opened 9 years ago Closed 8 years ago

webgl-1.0.3 conformance failure texture-upload-size.html

Categories

(Core :: Graphics: CanvasWebGL, defect)

Unspecified
Windows
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1286348

People

(Reporter: mtseng, Assigned: mtseng)

References

(Blocks 1 open bug, )

Details

(Whiteboard: webgl-conformance gfx-noted)

Attachments

(1 file, 1 obsolete file)

There is an GL error when calling texSubImage2d. In release build, it causes fail. In debug build, it causes an assertion.
Attached patch unpackFormat should be GL_RGBA. (obsolete) (deleted) — Splinter Review
ANGLE supports BGRA, so we might upload texture with internal format BGRA. But the unpack format should remain RGBA; otherwise, later calling texSubImage2D with unpack format RGBA would fail.
Attachment #8744215 - Flags: review?(jgilbert)
Comment on attachment 8744215 [details] [diff] [review] unpackFormat should be GL_RGBA. Review of attachment 8744215 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/canvas/TexUnpackBlob.cpp @@ +375,5 @@ > // RGB on the CPU. However, this is optimization is out-of-scope for now. > > static const webgl::DriverUnpackInfo kInfoBGRA = { > LOCAL_GL_BGRA, > + LOCAL_GL_RGBA, This inverts the red and blue channels.
Attachment #8744215 - Flags: review?(jgilbert) → review-
Using a different approach. When upload surface, we cached internalFormat at ImageInfo. So when calling texSubImage, we can use this cached value to determine correct unpack format.
Attachment #8744830 - Flags: review?(jgilbert)
Attachment #8744215 - Attachment is obsolete: true
This WORKSFORME. Can you confirm?
Flags: needinfo?(mtseng)
I found that if I turn on layers.prefer-d3d9 then I could reproduce this issue. Do we care this?
Flags: needinfo?(mtseng) → needinfo?(jgilbert)
(In reply to Morris Tseng [:mtseng] [:Morris] from comment #5) > I found that if I turn on layers.prefer-d3d9 then I could reproduce this > issue. Do we care this? Low priority, but feel free to take a look.
Flags: needinfo?(jgilbert)
Looks like bug 1286348 fix this. Let dup this of bug 1286348.
Attachment #8744830 - Flags: review?(jgilbert)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: