GLuint depth0,
bool for_bo,
GLuint num_samples,
- bool force_all_slices_at_each_lod)
+ bool force_all_slices_at_each_lod,
+ bool disable_aux_buffers)
{
struct intel_mipmap_tree *mt = calloc(sizeof(*mt), 1);
if (!mt)
mt->logical_height0 = height0;
mt->logical_depth0 = depth0;
mt->fast_clear_state = INTEL_FAST_CLEAR_STATE_NO_MCS;
- mt->disable_aux_buffers = false; /* hardcoded for now */
+ mt->disable_aux_buffers = disable_aux_buffers;
exec_list_make_empty(&mt->hiz_map);
/* The cpp is bytes per (1, blockheight)-sized block for compressed
first_level, last_level, width0,
height0, depth0,
false, num_samples,
- force_all_slices_at_each_lod);
+ force_all_slices_at_each_lod,
+ false /*disable_aux_buffers*/);
/*
* pitch == 0 || height == 0 indicates the null texture
*/
uint32_t width,
uint32_t height,
uint32_t depth,
- int pitch)
+ int pitch,
+ bool disable_aux_buffers)
{
struct intel_mipmap_tree *mt;
uint32_t tiling, swizzle;
mt = intel_miptree_create_layout(brw, target, format,
0, 0,
width, height, depth,
- true, 0, false);
+ true, 0, false,
+ disable_aux_buffers);
if (!mt) {
free(mt);
return mt;
width,
height,
1,
- pitch);
+ pitch,
+ false);
if (!singlesample_mt)
goto fail;
ctx->Driver.FreeTextureImageBuffer(ctx, image);
intel_image->mt = intel_miptree_create_for_bo(brw, bo, image->TexFormat,
- 0, width, height, 1, pitch);
+ 0, width, height, 1, pitch,
+ false /*disable_aux_buffers*/);
if (intel_image->mt == NULL)
return;
intel_image->mt->target = target;