[Bug 38545] Calculate surface size is wrong sometimes
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Aug 16 08:02:31 CDT 2015
https://bugs.winehq.org/show_bug.cgi?id=38545
Józef Kucia <joseph.kucia at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |joseph.kucia at gmail.com
--- Comment #1 from Józef Kucia <joseph.kucia at gmail.com> ---
(In reply to Sergey Isakov from comment #0)
> First what I see is the procedure calculate_dds_surface_size(..)
> It adopted to block based textures but not to compressed textures
> According to MSDN
> https://msdn.microsoft.com/en-us/library/windows/desktop/bb205578(v=vs.85).
> aspx
> the formula should be
> max(1, ( (width + 3) / 4 ) ) x max(1, ( (height + 3) / 4 ) ) x 8(DXT1) or
> 16(DXT2-5)
AFAIK calculate_dds_surface_size() and calculate_dds_file_size() should return
the correct size for all D3DFMT formats. These functions also handle block
compression formats, i.e. DXTn. Could you provide an example when the
calculated size is wrong?
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list