Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/tests/d3dx10.c:
- dds.header.pixel_format.flags = flags;
- dds.header.pixel_format.fourcc = fourcc;
- dds.header.pixel_format.bpp = bpp;
- dds.header.pixel_format.rmask = rmask;
- dds.header.pixel_format.gmask = gmask;
- dds.header.pixel_format.bmask = bmask;
- dds.header.pixel_format.amask = amask;
- memset(dds.data, 0, sizeof(dds.data));
- hr = D3DX10GetImageInfoFromMemory(&dds, sizeof(dds), NULL, &info, NULL);
- ok_(__FILE__, line)(hr == expected_hr, "Got unexpected hr %#lx, expected %#lx.\n", hr, expected_hr);
+}
+#define check_dds_dxt10_format(format, expected_format, wine_todo) \
check_dds_dxt10_format_(__LINE__, format, expected_format, wine_todo)
+static void check_dds_dxt10_format_(uint32_t line, DXGI_FORMAT format, DXGI_FORMAT expected_format, BOOL wine_todo)
Similarly here together with `check_dds_dxt10_format_unsupported_()`.
Not a ton of duplication but highlighting the actual test might be worth it.