wined3d: Handle WINED3DFMT_FLAG_BROKEN_PITCH in wined3d_format_calculate_size().
commit3f7e5d647e40ce09292e7164eb5cc49ac77914cc
authorPatrick Rudolph <siro@das-labor.org>
Fri, 26 Aug 2016 11:51:20 +0000 (26 13:51 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 26 Aug 2016 14:23:44 +0000 (26 23:23 +0900)
tree8c936d5d1ff58c359ffb8b3da5aa3fcffe20ae18
parent09b09b307a0c909bbc185dcb9348603d84a3b479
wined3d: Handle WINED3DFMT_FLAG_BROKEN_PITCH in wined3d_format_calculate_size().

The broken pitch calculation also affects the resource memory layout, as
evidenced by the mip-tree layout tests. Found using apitrace, which crashes on
Wine when playing back traces containing ATI1 textures.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/d3d8/tests/device.c
dlls/d3d9/tests/device.c
dlls/wined3d/utils.c