vkd3d: Always return tile shape.
Docs are lying. :\ Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
parent
7916d2a6d8
commit
7acc33ae39
|
@ -1389,18 +1389,12 @@ static void d3d12_resource_get_tiling(struct d3d12_device *device, struct d3d12_
|
||||||
|
|
||||||
tile_count += packed_tiles;
|
tile_count += packed_tiles;
|
||||||
|
|
||||||
if (standard_mips)
|
/* Docs say that we should clear tile_shape to zero if there are no standard mips,
|
||||||
{
|
* but this conflicts with all native drivers, so the docs are likely lying here.
|
||||||
tile_shape->WidthInTexels = block_extent.width;
|
* See test_get_resource_tiling() for info. */
|
||||||
tile_shape->HeightInTexels = block_extent.height;
|
tile_shape->WidthInTexels = block_extent.width;
|
||||||
tile_shape->DepthInTexels = block_extent.depth;
|
tile_shape->HeightInTexels = block_extent.height;
|
||||||
}
|
tile_shape->DepthInTexels = block_extent.depth;
|
||||||
else
|
|
||||||
{
|
|
||||||
tile_shape->WidthInTexels = 0;
|
|
||||||
tile_shape->HeightInTexels = 0;
|
|
||||||
tile_shape->DepthInTexels = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
*total_tile_count = tile_count;
|
*total_tile_count = tile_count;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue