From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94037] [Gallium] glGetQueryObject with GL_ANY_SAMPLES_PASSED returns the same as with GL_SAMPLES_PASSED Date: Sun, 07 Feb 2016 22:33:18 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0502017319==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 4AA096E2E4 for ; Sun, 7 Feb 2016 14:33:19 -0800 (PST) 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 --===============0502017319== Content-Type: multipart/alternative; boundary="14548843980.DD8fCf.27241"; charset="UTF-8" --14548843980.DD8fCf.27241 Date: Sun, 7 Feb 2016 22:33:18 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94037 Bug ID: 94037 Summary: [Gallium] glGetQueryObject with GL_ANY_SAMPLES_PASSED returns the same as with GL_SAMPLES_PASSED Product: Mesa Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r600 Assignee: dri-devel@lists.freedesktop.org Reporter: peter.fiss@gmx.de QA Contact: dri-devel@lists.freedesktop.org Created attachment 121579 --> https://bugs.freedesktop.org/attachment.cgi?id=121579&action=edit Source code of the test program. Needs SDL2 to build. It shows a red background if the describes bug exists. The OpenGL-Wiki says, the function should return "GL_FALSE if none of the scoped drawing commands generate samples that pass the depth test; otherwise, the value is GL_TRUE". Source: https://www.opengl.org/wiki/Query_Object When calling glGetQueryObjecti64v on r600 or nouveau (probably on any gallium driver) however, it returns the number of samples which passed the depth test. This would be correct behaviour if the argument was GL_SAMPLES_PASSED instead of GL_ANY_SAMPLES_PASSED. I have attached the source code of a simple example program. It worked correctly on the following platforms: - Arch Linux with Intel Ivy Bridge graphics (Mesa 11.1.1-1) - Windows 7 with the same Intel graphics - Windows 7 with Nvidia GeForce GT 640M - Windows 7 with ATI Radeon HD 5670 It showed incorrect behaviour on these systems: - Arch Linux with Nouveau and GeForce GT 640M (Mesa 11.1.1-1) - Manjaro with r600 and Radeon HD 5670 (Mesa 11.1.1-1) Note that the bugtracker does not allow me to specify 11.1 as mesa version. -- You are receiving this mail because: You are the assignee for the bug. --14548843980.DD8fCf.27241 Date: Sun, 7 Feb 2016 22:33:18 +0000 MIME-Version: 1.0 Content-Type: text/html
Bug ID 94037
Summary [Gallium] glGetQueryObject with GL_ANY_SAMPLES_PASSED returns the same as with GL_SAMPLES_PASSED
Product Mesa
Version unspecified
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/r600
Assignee dri-devel@lists.freedesktop.org
Reporter peter.fiss@gmx.de
QA Contact dri-devel@lists.freedesktop.org

Created attachment 121579 [details]
Source code of the test program. Needs SDL2 to build. It shows a red background
if the describes bug exists.

The OpenGL-Wiki says, the function should return "GL_FALSE if none of the
scoped drawing commands generate samples that pass the depth test; otherwise,
the value is GL_TRUE". Source: https://www.opengl.org/wiki/Query_Object

When calling glGetQueryObjecti64v on r600 or nouveau (probably on any gallium
driver) however, it returns the number of samples which passed the depth test.
This would be correct behaviour if the argument was GL_SAMPLES_PASSED instead
of GL_ANY_SAMPLES_PASSED.

I have attached the source code of a simple example program. It worked
correctly on the following platforms:
- Arch Linux with Intel Ivy Bridge graphics (Mesa 11.1.1-1)
- Windows 7 with the same Intel graphics
- Windows 7 with Nvidia GeForce GT 640M
- Windows 7 with ATI Radeon HD 5670

It showed incorrect behaviour on these systems:
- Arch Linux with Nouveau and GeForce GT 640M (Mesa 11.1.1-1)
- Manjaro with r600 and Radeon HD 5670 (Mesa 11.1.1-1)

Note that the bugtracker does not allow me to specify 11.1 as mesa version.


You are receiving this mail because:
  • You are the assignee for the bug.
--14548843980.DD8fCf.27241-- --===============0502017319== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0502017319==--