Skip to contentSkip to conversation

New: Very large 2D texture is sometimes corrupted

Bug 48131 [email protected] 1 participant 8 messages Mar 31, 2012 – Aug 8, 2012

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=48131

Bug #: 48131
Summary: Very large 2D texture is sometimes corrupted
Classification: Unclassified
Product: Mesa
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/R600
AssignedTo: [email protected]
ReportedBy: [email protected]

This WebGL testcase just creates a huge blank texture and draws a quad with it:

http://people.mozilla.org/~bjacob/webgltexture2D5k.html

You should see only black. But here I occasionally see some corruption with vertical yellow stripes on a rectangular part of the image. Reloading the page a few times makes the problem go away.

The testcase uses webgl.texImage2D with null pixel data, which causes the browser to calloc() a buffer and pass it to glTexImage2D. So it's not just an uninitialized texture. The application is doing what's right to properly initialize the texture with zero'd image data.

If there is any risk that this might be exposing uninitialized texture memory, then please treat this as a high priority, as we'd have to find a work around.

FWIW, on a different proprietary platform, this does expose video memory and forced us to artificially limit the max texture size to 4k.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 48131] Very large 2D texture is sometimes corrupted

https://bugs.freedesktop.org/show_bug.cgi?id=48131

--- Comment #1 from Benoit Jacob <[email protected]> 2012-03-31 12:40:44 PDT --- By the way, this is on Ubuntu 11.10, 64 bit,

X.Org -- Gallium 0.4 on AMD RV710 -- 2.1 Mesa 7.11

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 48131] Very large 2D texture is sometimes corrupted

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=48131

--- Comment #3 from Benoit Jacob <[email protected]> 2012-04-02 13:40:51 PDT --- Maybe, if there is a package for Ubuntu 11.10 that is safe and easy to install?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 48131] Very large 2D texture is sometimes corrupted

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=48131

--- Comment #4 from Robert Hooker (Sarvatt) <[email protected]> 2012-04-02 14:35:38 PDT --- The safest way would be to just try a 12.04 beta 2 or newer livecd out, it has 8.0.2

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 48131] Very large 2D texture is sometimes corrupted

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=48131

Sven Arvidsson <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #5 from Sven Arvidsson <[email protected]> 2012-04-02 15:32:53 PDT --- FWIW, for me the test segfaults with 8.0 but works (without artefacts AFAICT) with 8.0.2. This is on a HD 5670.

(I suppose the component of the bug should be moved to Drivers/Gallium/r600 ?)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 48131] Very large 2D texture is sometimes corrupted

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=48131

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Component|Drivers/DRI/R600 |Drivers/Gallium/r600

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 48131] Very large 2D texture is sometimes corrupted

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=48131

Andreas Boll <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #6 from Andreas Boll <[email protected]> 2012-08-08 18:03:21 UTC --- (In reply to comment #0)

Quoted 13 lines

This WebGL testcase just creates a huge blank texture and draws a quad with it:

http://people.mozilla.org/~bjacob/webgltexture2D5k.html

You should see only black. But here I occasionally see some corruption with vertical yellow stripes on a rectangular part of the image. Reloading the page a few times makes the problem go away.

The testcase uses webgl.texImage2D with null pixel data, which causes the browser to calloc() a buffer and pass it to glTexImage2D. So it's not just an uninitialized texture. The application is doing what's right to properly initialize the texture with zero'd image data.

Quoted 5 lines

If there is any risk that this might be exposing uninitialized texture memory, then please treat this as a high priority, as we'd have to find a work around.

FWIW, on a different proprietary platform, this does expose video memory and forced us to artificially limit the max texture size to 4k.

With current firefox nightly 20120808
and current mesa 8.1-devel (git-be42a45) this site works for me. I see only black.

WebGL Renderer: X.Org -- Gallium 0.4 on AMD RV770 -- 2.1 Mesa 8.1-devel (git-be42a45)

Feel free to reopen this report if the issue persists.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.