diff options
author | Marek Olšák <[email protected]> | 2011-05-07 19:55:45 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-05-15 03:28:32 +0200 |
commit | fdd37af3f76ea3ac32f21e9a9c41979a9b33cc5c (patch) | |
tree | 7296c98673124d2bcc39a530c00f75a00567c15e /src/gallium/winsys/radeon/drm/radeon_drm_winsys.h | |
parent | 904f43f1909256956856665acf072db71fb92092 (diff) |
r300g: dynamically ask for and release Hyper-Z access
We ask for Hyper-Z access when clearing a zbuffer.
We release it if no zbuffer clear has been done for 2 seconds.
Diffstat (limited to 'src/gallium/winsys/radeon/drm/radeon_drm_winsys.h')
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_winsys.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h index e1b9493fc10..d5186bc4d17 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h @@ -32,6 +32,8 @@ #include "radeon_winsys.h" +#include "os/os_thread.h" + struct radeon_drm_winsys { struct radeon_winsys base; @@ -52,10 +54,10 @@ struct radeon_drm_winsys { unsigned drm_minor; unsigned drm_patchlevel; - /* Hyper-Z user */ - boolean hyperz; - /* AA compression (CMask) */ - boolean aacompress; + struct radeon_drm_cs *hyperz_owner; + pipe_mutex hyperz_owner_mutex; + struct radeon_drm_cs *cmask_owner; + pipe_mutex cmask_owner_mutex; }; static INLINE struct radeon_drm_winsys * |