Lines Matching refs:assert

104       assert(!(usage & ISL_SURF_USAGE_CUBE_BIT));
118 assert(!(usage & ISL_SURF_USAGE_CUBE_BIT));
138 assert(plane_bpb == 8 || plane_bpb == 16);
139 assert((isl_format_get_aux_map_encoding(format) & 0xf0) == 0);
146 assert(plane_bpb == 16 || plane_bpb == 32);
147 assert((isl_format_get_aux_map_encoding(format) & 0xf0) == 0);
166 assert(isl_format_supports_rendering(dev->info, info->view->format));
168 assert(isl_format_supports_sampling(dev->info, info->view->format));
176 assert(!isl_format_is_compressed(info->view->format));
183 * we'd like to assert that the two formats match. However, we have an
184 * S3TC workaround that requires us to do reinterpretation. So assert
191 assert(surf_fmtl->bpb == view_fmtl->bpb);
192 assert(surf_fmtl->bw == view_fmtl->bw);
193 assert(surf_fmtl->bh == view_fmtl->bh);
235 assert(info->write_disables == 0);
243 assert(info->surf->logical_level0_px.width > 0 &&
280 assert(info->view->base_array_layer == 0);
330 * assert-failures in the packing function below, we only set the field
403 assert(GFX_VER < 12 || info->surf->tiling != ISL_TILING_W);
410 assert(info->surf->tiling == ISL_TILING_Y0);
451 assert(info->view->min_lod_clamp == 0);
452 assert(info->view->base_level == 0);
453 assert(info->view->levels == 1);
465 assert(info->view->min_lod_clamp == 0);
470 assert(isl_swizzle_supports_rendering(dev->info, info->view->swizzle));
477 assert(isl_swizzle_is_identity(info->view->swizzle));
492 assert(info->surf->tiling != ISL_TILING_LINEAR);
493 assert(info->surf->dim == ISL_SURF_DIM_2D);
494 assert(isl_is_pow2(isl_format_get_layout(info->view->format)->bpb));
495 assert(info->surf->levels == 1);
496 assert(info->surf->logical_level0_px.array_len == 1);
497 assert(info->aux_usage == ISL_AUX_USAGE_NONE);
501 assert(info->surf->samples == 1);
503 assert(info->x_offset_sa % 16 == 0);
505 assert(info->x_offset_sa % 8 == 0);
515 assert(info->x_offset_sa % x_div == 0);
516 assert(info->y_offset_sa % y_div == 0);
520 assert(info->x_offset_sa == 0);
521 assert(info->y_offset_sa == 0);
528 assert(info->aux_usage == ISL_AUX_USAGE_MCS ||
536 assert(info->aux_usage == ISL_AUX_USAGE_HIZ ||
541 assert(info->aux_usage == ISL_AUX_USAGE_HIZ ||
545 assert(info->aux_usage == ISL_AUX_USAGE_MCS ||
556 assert(!(info->view->usage & ISL_SURF_USAGE_STORAGE_BIT));
559 assert(isl_aux_usage_has_hiz(info->aux_usage));
562 assert(info->aux_usage == ISL_AUX_USAGE_STC_CCS);
587 assert(info->surf->samples == 1);
590 assert(info->surf->dim != ISL_SURF_DIM_3D);
599 assert(!"Incompatible HiZ Sampling format");
628 assert(isl_format_supports_ccs_e(dev->info, info->view->format));
645 assert(isl_format_supports_ccs_d(dev->info, info->view->format));
647 assert(info->view->usage & ISL_SURF_USAGE_TEXTURE_BIT);
648 assert(isl_format_supports_ccs_e(dev->info, info->view->format));
672 assert(info->aux_surf != NULL);
755 assert(info->use_clear_address);
769 assert(info->clear_color.u32[i] == 0 ||
778 assert(info->clear_color.f32[i] == 0.0f ||
812 assert(info->stride_B == 1);
819 assert(num_elements > 0);
821 assert(num_elements <= dev->max_buffer_size);
828 assert(num_elements <= (1ull << 27));
844 assert(info->format == ISL_FORMAT_RAW);
845 assert(info->stride_B % 64 == 0);
846 assert(info->stride_B <= 256 * 1024);
850 assert(!info->is_scratch);