From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 97305] Wrong values returned by
GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT & GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT
randomly breaks stuff
Date: Thu, 11 Aug 2016 23:08:40 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0621706091=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[IPv6:2610:10:20:722:a800:ff:fe98:4b55])
by gabe.freedesktop.org (Postfix) with ESMTP id 5D5A66EA17
for ; Thu, 11 Aug 2016 23:08:40 +0000 (UTC)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0621706091==
Content-Type: multipart/alternative; boundary="14709569200.AB2C154.10872";
charset="UTF-8"
--14709569200.AB2C154.10872
Date: Thu, 11 Aug 2016 23:08:40 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
https://bugs.freedesktop.org/show_bug.cgi?id=3D97305
--- Comment #13 from Matias N. Goldberg ---
I've added a "Proof of the bug".
There IS a bug. I don't know if it's software or in the hardware. The attac=
hed
sample does the following:
1. Create a 1MB buffer.
2. Fill the first 4kb with the pattern:
data[i+0] =3D 1.0f;
data[i+1] =3D 0.5f;
data[i+2] =3D 0.15f;
data[i+3] =3D 0.0f;
3. Attach it via:
glActiveTexture( GL_TEXTURE0 );
glBindTexture( GL_TEXTURE_BUFFER, texName );
glTexBufferRange( GL_TEXTURE_BUFFER, GL_RGBA32F, vboName,
elementStart*sizeof(float),
1024*4*sizeof(float) );
++elementStart;
4. Render a triangle showing the colours.
If the alignment is not a problem, I should see Orange-Cream, then Carmine,
then blue-violetish, then green; repeat.
Instead I **ALWAYS** see Orange-Cream; which is clearly incorrect.
After running the sample long enough, elementStart will be > 1024 (thus 102=
4*4
exceeding 4kb) and begins to display black. (and if you leave it long enough
running it could crash or throw an error, that's not the point)
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--14709569200.AB2C154.10872
Date: Thu, 11 Aug 2016 23:08:40 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
Commen=
t # 13
on bug 97305<=
/a>
from Matias N. Goldberg
I've added a "Proof of the bug".
There IS a bug. I don't know if it's software or in the hardware. The attac=
hed
sample does the following:
1. Create a 1MB buffer.
2. Fill the first 4kb with the pattern:
data[i+0] =3D 1.0f;
data[i+1] =3D 0.5f;
data[i+2] =3D 0.15f;
data[i+3] =3D 0.0f;
3. Attach it via:
glActiveTexture( GL_TEXTURE0 );
glBindTexture( GL_TEXTURE_BUFFER, texName );
glTexBufferRange( GL_TEXTURE_BUFFER, GL_RGBA32F, vboName,
elementStart*sizeof(float),
1024*4*sizeof(float) );
++elementStart;
4. Render a triangle showing the colours.
If the alignment is not a problem, I should see Orange-Cream, then Carmine,
then blue-violetish, then green; repeat.
Instead I **ALWAYS** see Orange-Cream; which is clearly incorrect.
After running the sample long enough, elementStart will be > 1024 (thus =
1024*4
exceeding 4kb) and begins to display black. (and if you leave it long enough
running it could crash or throw an error, that's not the point)
You are receiving this mail because:
- You are the assignee for the bug.
=
--14709569200.AB2C154.10872--
--===============0621706091==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============0621706091==--