1 /* 2 * Copyright © 2020 Google LLC 3 * SPDX-License-Identifier: MIT 4 */ 5 6 #include "common/freedreno_dev_info.h" 7 8 struct testcase { 9 enum pipe_format format; 10 11 int array_size; /* Size for array textures, or 0 otherwise. */ 12 bool is_3d; 13 14 /* Partially filled layout of input parameters and expected results. */ 15 struct { 16 uint32_t tile_mode : 2; 17 bool tile_all : 1; 18 bool ubwc : 1; 19 uint32_t width0, height0, depth0; 20 uint32_t nr_samples; 21 struct { 22 uint32_t offset; 23 uint32_t pitch; 24 uint32_t size0; 25 } slices[FDL_MAX_MIP_LEVELS]; 26 struct { 27 uint32_t offset; 28 uint32_t pitch; 29 } ubwc_slices[FDL_MAX_MIP_LEVELS]; 30 } layout; 31 }; 32 33 bool fdl_test_layout(const struct testcase *testcase, const struct fd_dev_id *dev_id); 34