Lines Matching defs:testcase
33 fdl_test_layout(const struct testcase *testcase, int gpu_id)
36 .ubwc = testcase->layout.ubwc,
37 .tile_mode = testcase->layout.tile_mode,
38 .tile_all = testcase->layout.tile_all,
42 int max_size = MAX2(testcase->layout.width0, testcase->layout.height0);
44 while (max_size > 1 && testcase->layout.slices[mip_levels].pitch) {
50 fdl6_layout(&layout, testcase->format,
51 MAX2(testcase->layout.nr_samples, 1), testcase->layout.width0,
52 MAX2(testcase->layout.height0, 1),
53 MAX2(testcase->layout.depth0, 1), mip_levels,
54 MAX2(testcase->array_size, 1), testcase->is_3d, NULL);
57 fdl5_layout(&layout, testcase->format,
58 MAX2(testcase->layout.nr_samples, 1), testcase->layout.width0,
59 MAX2(testcase->layout.height0, 1),
60 MAX2(testcase->layout.depth0, 1), mip_levels,
61 MAX2(testcase->array_size, 1), testcase->is_3d);
65 * recorded in this testcase are the color offsets (other than the UBWC
69 if (layout.ubwc && !testcase->layout.slices[0].offset) {
76 if (layout.slices[l].offset != testcase->layout.slices[l].offset) {
78 util_format_short_name(testcase->format), layout.width0,
80 layout.slices[l].offset, testcase->layout.slices[l].offset);
83 if (fdl_pitch(&layout, l) != testcase->layout.slices[l].pitch) {
85 util_format_short_name(testcase->format), layout.width0,
87 fdl_pitch(&layout, l), testcase->layout.slices[l].pitch);
94 if (testcase->layout.slices[l].size0 && layout.slices[l].size0 !=
95 testcase->layout.slices[l].size0) {
97 util_format_short_name(testcase->format), layout.width0,
100 testcase->layout.slices[l].size0);
105 testcase->layout.ubwc_slices[l].offset) {
107 util_format_short_name(testcase->format), layout.width0,
110 testcase->layout.ubwc_slices[l].offset);
113 if (fdl_ubwc_pitch(&layout, l) != testcase->layout.ubwc_slices[l].pitch) {
115 util_format_short_name(testcase->format), layout.width0,
118 testcase->layout.ubwc_slices[l].pitch);