num_layers = INTEL_REMAINING_LAYERS;
}
- const bool disable_aux = rendering &&
+ if (rendering) {
intel_disable_rb_aux_buffer(brw, draw_aux_buffer_disabled,
tex_obj->mt, min_level, num_levels,
"for sampling");
+ }
intel_miptree_prepare_texture(brw, tex_obj->mt, view_format,
min_level, num_levels,
- min_layer, num_layers,
- disable_aux);
+ min_layer, num_layers);
/* If any programs are using it with texelFetch, we may need to also do
* a prepare with an sRGB format to ensure texelFetch works "properly".
if (txf_format != view_format) {
intel_miptree_prepare_texture(brw, tex_obj->mt, txf_format,
min_level, num_levels,
- min_layer, num_layers,
- disable_aux);
+ min_layer, num_layers);
}
}
if (irb) {
intel_miptree_prepare_texture(brw, irb->mt, irb->mt->surf.format,
irb->mt_level, 1,
- irb->mt_layer, irb->layer_count,
- false);
+ irb->mt_layer, irb->layer_count);
}
}
}
struct intel_mipmap_tree *mt,
enum isl_format view_format,
uint32_t start_level, uint32_t num_levels,
- uint32_t start_layer, uint32_t num_layers,
- bool disable_aux)
+ uint32_t start_layer, uint32_t num_layers)
{
- enum isl_aux_usage aux_usage = disable_aux ? ISL_AUX_USAGE_NONE :
+ enum isl_aux_usage aux_usage =
intel_miptree_texture_aux_usage(brw, mt, view_format);
bool clear_supported = aux_usage != ISL_AUX_USAGE_NONE;
struct intel_mipmap_tree *mt,
enum isl_format view_format,
uint32_t start_level, uint32_t num_levels,
- uint32_t start_layer, uint32_t num_layers,
- bool disable_aux);
+ uint32_t start_layer, uint32_t num_layers);
void
intel_miptree_prepare_image(struct brw_context *brw,
struct intel_mipmap_tree *mt);