Bug 106986

Summary: glGetQueryiv error when querying number of result bits for GL_ANY_SAMPLES_PASSED_CONSERVATIVE
Product: Mesa Reporter: Danylo <danylo.piliaiev>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium CC: danylo.piliaiev
Version: git   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.