head->level = level;
head->layer = layer;
- head->need = INTEL_NEED_HIZ_RESOLVE;
+ head->need = GEN6_HIZ_OP_HIZ_RESOLVE;
}
}
return;
intel_resolve_map_set(&mt->hiz_map,
- level, layer, INTEL_NEED_HIZ_RESOLVE);
+ level, layer, GEN6_HIZ_OP_HIZ_RESOLVE);
}
return;
intel_resolve_map_set(&mt->hiz_map,
- level, layer, INTEL_NEED_DEPTH_RESOLVE);
+ level, layer, GEN6_HIZ_OP_DEPTH_RESOLVE);
}
typedef void (*resolve_func_t)(struct intel_context *intel,
struct intel_mipmap_tree *mt,
uint32_t level,
uint32_t layer,
- enum intel_need_resolve need,
+ enum gen6_hiz_op need,
resolve_func_t func)
{
intel_miptree_check_level_layer(mt, level, layer);
uint32_t layer)
{
return intel_miptree_slice_resolve(intel, mt, level, layer,
- INTEL_NEED_HIZ_RESOLVE,
+ GEN6_HIZ_OP_HIZ_RESOLVE,
intel->vtbl.resolve_hiz_slice);
}
uint32_t layer)
{
return intel_miptree_slice_resolve(intel, mt, level, layer,
- INTEL_NEED_DEPTH_RESOLVE,
+ GEN6_HIZ_OP_DEPTH_RESOLVE,
intel->vtbl.resolve_depth_slice);
}
static bool
intel_miptree_all_slices_resolve(struct intel_context *intel,
struct intel_mipmap_tree *mt,
- enum intel_need_resolve need,
+ enum gen6_hiz_op need,
resolve_func_t func)
{
bool did_resolve = false;
struct intel_mipmap_tree *mt)
{
return intel_miptree_all_slices_resolve(intel, mt,
- INTEL_NEED_HIZ_RESOLVE,
+ GEN6_HIZ_OP_HIZ_RESOLVE,
intel->vtbl.resolve_hiz_slice);
}
struct intel_mipmap_tree *mt)
{
return intel_miptree_all_slices_resolve(intel, mt,
- INTEL_NEED_DEPTH_RESOLVE,
+ GEN6_HIZ_OP_DEPTH_RESOLVE,
intel->vtbl.resolve_depth_slice);
}
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* For an overview of the HiZ operations, see the following sections of the
* Sandy Bridge PRM, Volume 1, Part2:
GEN6_HIZ_OP_NONE,
};
-enum intel_need_resolve {
- INTEL_NEED_HIZ_RESOLVE,
- INTEL_NEED_DEPTH_RESOLVE,
-};
-
/**
* \brief Map of miptree slices to needed resolves.
*
struct intel_resolve_map {
uint32_t level;
uint32_t layer;
- enum intel_need_resolve need;
+ enum gen6_hiz_op need;
struct intel_resolve_map *next;
struct intel_resolve_map *prev;
intel_resolve_map_set(struct intel_resolve_map *head,
uint32_t level,
uint32_t layer,
- enum intel_need_resolve need);
+ enum gen6_hiz_op need);
struct intel_resolve_map*
intel_resolve_map_get(struct intel_resolve_map *head,
void
intel_resolve_map_clear(struct intel_resolve_map *head);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+