diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-08-19 03:15:41 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-08-29 12:17:34 -0700 |
commit | 87a1cb697937fa01405b0a57470ee69b9cf19998 (patch) | |
tree | 12596d2bc52d02830fba784b3ed905e349dd036c /src/mesa/drivers/dri/i965/intel_resolve_map.h | |
parent | db95a8108f68dfeae10db4f56f721838fd57b36f (diff) | |
download | external_mesa3d-87a1cb697937fa01405b0a57470ee69b9cf19998.zip external_mesa3d-87a1cb697937fa01405b0a57470ee69b9cf19998.tar.gz external_mesa3d-87a1cb697937fa01405b0a57470ee69b9cf19998.tar.bz2 |
i965: Move the hiz_op enum to blorp
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_resolve_map.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_resolve_map.h | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_resolve_map.h b/src/mesa/drivers/dri/i965/intel_resolve_map.h index 726b287..672a4aa 100644 --- a/src/mesa/drivers/dri/i965/intel_resolve_map.h +++ b/src/mesa/drivers/dri/i965/intel_resolve_map.h @@ -24,6 +24,7 @@ #pragma once #include <stdint.h> +#include "blorp.h" #include "compiler/glsl/list.h" #ifdef __cplusplus @@ -31,23 +32,6 @@ extern "C" { #endif /** - * For an overview of the HiZ operations, see the following sections of the - * Sandy Bridge PRM, Volume 1, Part2: - * - 7.5.3.1 Depth Buffer Clear - * - 7.5.3.2 Depth Buffer Resolve - * - 7.5.3.3 Hierarchical Depth Buffer Resolve - * - * Of these, two get entered in the resolve map as needing to be done to the - * buffer: depth resolve and hiz resolve. - */ -enum gen6_hiz_op { - GEN6_HIZ_OP_DEPTH_CLEAR, - GEN6_HIZ_OP_DEPTH_RESOLVE, - GEN6_HIZ_OP_HIZ_RESOLVE, - GEN6_HIZ_OP_NONE, -}; - -/** * \brief Map of miptree slices to needed resolves. * * The map is implemented as a linear doubly-linked list. @@ -78,14 +62,14 @@ struct intel_resolve_map { uint32_t level; uint32_t layer; - enum gen6_hiz_op need; + enum blorp_hiz_op need; }; void intel_resolve_map_set(struct exec_list *resolve_map, uint32_t level, uint32_t layer, - enum gen6_hiz_op need); + enum blorp_hiz_op need); struct intel_resolve_map * intel_resolve_map_get(struct exec_list *resolve_map, |