diff options
author | Marek Olšák <[email protected]> | 2011-06-10 19:00:50 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-06-10 19:45:45 +0200 |
commit | bbebbdd3e726b6faaa58b5e1d0044e2b9010969f (patch) | |
tree | 97a5ce2a860c0414b5c18c26aaed71fcd04b53a3 /bin | |
parent | e5408efb20327c46fe67d35e18348ddd6300e282 (diff) |
r300g: fix occlusion queries when depth test is disabled or zbuffer is missing
From now on, depth test is always enabled in hardware.
If depth test is disabled in Gallium, the hardware Z function is set to ALWAYS.
If there is no zbuffer set, the colorbuffer0 memory is set as a zbuffer
to silence the CS checker.
This fixes piglit:
- occlusion-query-discard
- NV_conditional_render/bitmap
- NV_conditional_render/drawpixels
- NV_conditional_render/vertex_array
(cherry picked from commit f76787b3eae3f0b8af839fabfb24b57715a017f6)
Conflicts:
src/gallium/drivers/r300/r300_state.c
Squashed with cherry-picked b1246cf13bc4e301b499a95d33e0cab26655fed5.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions