diff options
author | Marek Olšák <[email protected]> | 2013-01-14 01:38:51 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-01-15 21:50:34 +0100 |
commit | 7660529c44b3f6753e9b5636e876a3cd83c8ba51 (patch) | |
tree | 337240303d58cbe61f9b3489fda4aeee8426bf51 /src/gallium/drivers/r300/r300_context.h | |
parent | ca2c28859eca83f8fbf1f43616f5ef861e95e8d6 (diff) |
r300g: fix and cleanup flushing before clearing CMASK, ZMASK, and HIZ
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index 33851519bd8..8f8dc0c8a79 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -487,6 +487,13 @@ struct r300_context { * performance and stability if not handled with care. */ /* GPU flush. */ struct r300_atom gpu_flush; + /* Clears must be emitted immediately after the flush. */ + /* HiZ clear */ + struct r300_atom hiz_clear; + /* zmask clear */ + struct r300_atom zmask_clear; + /* cmask clear */ + struct r300_atom cmask_clear; /* Anti-aliasing (MSAA) state. */ struct r300_atom aa_state; /* Framebuffer state. */ @@ -537,12 +544,6 @@ struct r300_context { struct r300_atom texture_cache_inval; /* Textures state. */ struct r300_atom textures_state; - /* HiZ clear */ - struct r300_atom hiz_clear; - /* zmask clear */ - struct r300_atom zmask_clear; - /* cmask clear */ - struct r300_atom cmask_clear; /* Occlusion query. */ struct r300_atom query_start; |