From: bugzilla-daemon@freedesktop.org
Subject: [Bug 75061] bug in clearing color buffer
Date: Mon, 24 Feb 2014 12:36:17 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0786973795=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 76675FA998
for ;
Mon, 24 Feb 2014 04:36:17 -0800 (PST)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces@lists.freedesktop.org
Errors-To: dri-devel-bounces@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0786973795==
Content-Type: multipart/alternative; boundary="1393245377.267580.23483"; charset="us-ascii"
--1393245377.267580.23483
Date: Mon, 24 Feb 2014 12:36:17 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.freedesktop.org/show_bug.cgi?id=3D75061
--- Comment #13 from Marek Ol=C5=A1=C3=A1k ---
If the program called MapBufferRange(MAP_INVALIDATE_BUFFER_BIT) instead of
BufferData, I think it would be okay to crash:
>From GL 4.4 spec:
"MAP_INVALIDATE_BUFFER_BIT indicates that the previous contents of the enti=
re
buffer may be discarded. Data within the entire buffer are undefined with t=
he
exception of subsequently written data. No GL error is generated if subsequ=
ent
GL operations access unwritten data, but the result is undefined and system
errors (possibly including program termination) may occur."
In other words, no context should access the buffer until UnmapBuffer() is
complete, because there may be unwritten data.
--=20
You are receiving this mail because:
You are the assignee for the bug.
--1393245377.267580.23483
Date: Mon, 24 Feb 2014 12:36:17 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Commen=
t # 13
on bug 75061<=
/a>
from Marek Ol=C5=A1=C3=A1k
If the program called MapBufferRange(MAP_INVALIDATE_BUFFER_BIT=
) instead of
BufferData, I think it would be okay to crash:
>From GL 4.4 spec:
"MAP_INVALIDATE_BUFFER_BIT indicates that the previous contents of the=
entire
buffer may be discarded. Data within the entire buffer are undefined with t=
he
exception of subsequently written data. No GL error is generated if subsequ=
ent
GL operations access unwritten data, but the result is undefined and system
errors (possibly including program termination) may occur."
In other words, no context should access the buffer until UnmapBuffer() is
complete, because there may be unwritten data.
You are receiving this mail because:
=20=20=20=20=20=20
- You are the assignee for the bug.
--1393245377.267580.23483--
--===============0786973795==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============0786973795==--