[Mesa-dev] [PATCH v2 09/11] st/mesa: use the occlusion predicate query for GL_ANY_SAMPLES
Ilia Mirkin
imirkin at alum.mit.edu
Wed Feb 3 14:11:51 UTC 2016
On Wed, Feb 3, 2016 at 5:11 AM, Marek Olšák <maraeo at gmail.com> wrote:
> On Sun, Jan 31, 2016 at 9:56 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>> On Sun, Jan 31, 2016 at 3:32 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>>> This is supposed to return GL_TRUE or GL_FALSE, not the full counter
>>> value.
>>>
>>> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
>>> ---
>>
>> Errr... hm. Just realized many drivers will fail at this. Oh well,
>> I'll drop it for now.
>
> Are you sure?
Pretty sure. At the very least, nv30 doesn't support it. Definitely fixable.
>
> We might have to enable this eventually, because if apps use it, it
> allows faster rendering than with OCCLUSION_COUNTER, because depth
> test with depth-only rendering and no writes can run at HiZ rate
> instead of pixel rate.
Yeah, that makes sense. I think we just need to do a driver audit
first, before enabling it.
-ilia
More information about the mesa-dev
mailing list