Bug 106986 - glGetQueryiv error when querying number of result bits for GL_ANY_SAMPLES_PASSED_CONSERVATIVE
Summary: glGetQueryiv error when querying number of result bits for GL_ANY_SAMPLES_PAS...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: All All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-21 09:30 UTC by Danylo
Modified: 2018-06-27 10:05 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Danylo 2018-06-21 09:30:21 UTC
glGetQueryiv has GL_ANY_SAMPLES_PASSED_CONSERVATIVE as a valid target and spec says:

> If pname is GL_QUERY_COUNTER_BITS, the implementation-dependent number 
> of bits used to hold the result of queries for target is returned in params. 

Now glGetQueryiv(GL_ANY_SAMPLES_PASSED_CONSERVATIVE, GL_QUERY_COUNTER_BITS, &QueryBits) produces an error.
Comment 1 Danylo 2018-06-21 09:36:34 UTC
Sent a patch https://patchwork.freedesktop.org/patch/230710/
Comment 2 Denis 2018-06-22 08:15:17 UTC
Hello.
Case can be easy reproduced by running the test ./gl-450-query-conditional
from https://github.com/g-truc/ogl-samples

Tested with patch - test is passing now
Comment 3 Tapani Pälli 2018-06-27 10:05:21 UTC
--- 8< ---
commit e7cdaa895a785025a7af80a187a358c880379f96
Author: Danylo Piliaiev <danylo.piliaiev@gmail.com>
Date:   Thu Jun 21 12:34:15 2018 +0300

    mesa: Return number of result bits for GL_ANY_SAMPLES_PASSED_CONSERVATIVE
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106986
    Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
    Reviewed-by: Tapani Pälli <tapani.palli@intel.com>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.