testcase->layout.slices[l].offset);
ok = false;
}
- if (layout.slices[l].pitch != testcase->layout.slices[l].pitch) {
+ if (fdl_pitch(&layout, l) != testcase->layout.slices[l].pitch) {
fprintf(stderr, "%s %dx%dx%d@%dx lvl%d: pitch %d != %d\n",
util_format_short_name(testcase->format),
layout.width0, layout.height0, layout.depth0,
layout.nr_samples, l,
- layout.slices[l].pitch,
+ fdl_pitch(&layout, l),
testcase->layout.slices[l].pitch);
ok = false;
}
testcase->layout.ubwc_slices[l].offset);
ok = false;
}
- if (layout.ubwc_slices[l].pitch != testcase->layout.ubwc_slices[l].pitch) {
+ if (fdl_ubwc_pitch(&layout, l) != testcase->layout.ubwc_slices[l].pitch) {
fprintf(stderr, "%s %dx%dx%d@%dx lvl%d: UBWC pitch %d != %d\n",
util_format_short_name(testcase->format),
layout.width0, layout.height0, layout.depth0,
layout.nr_samples, l,
- layout.ubwc_slices[l].pitch,
+ fdl_ubwc_pitch(&layout, l),
testcase->layout.ubwc_slices[l].pitch);
ok = false;
}