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