diff options
author | Eric Anholt <[email protected]> | 2012-05-17 22:03:32 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-05-23 10:40:11 -0700 |
commit | 68216f35814ab8d292f37b8c0fa0a5f181b7f20d (patch) | |
tree | 67687b30ca5c4566da8b81d05af8ceb6fac0d8d3 /src/mesa/drivers/dri/intel | |
parent | 5b248e598293e7c21257d35904294da4c8f2da58 (diff) |
i965/gen6+: Add support for fast depth clears.
Improves citybench high-res performance 3.0% +- 0.4%, n=10. Improves
Lightsmark 1024x768 performance 0.74% +/- 0.20% (n=78). No
significant difference on openarena (n=5, didn't fast clear) or nexuiz
(n=3).
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_mipmap_tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h index e690a12312b..7536065f227 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h @@ -177,6 +177,11 @@ struct intel_mipmap_tree GLuint total_width; GLuint total_height; + /* The 3DSTATE_CLEAR_PARAMS value associated with the last depth clear to + * this depth mipmap tree, if any. + */ + uint32_t depth_clear_value; + /* Includes image offset tables: */ struct intel_mipmap_level level[MAX_TEXTURE_LEVELS]; |