[PATCH] mfplat: Properly align memory allocated by IMF2DBuffer.

Giovanni Mascellani gmascellani at codeweavers.com
Mon Mar 14 09:08:31 CDT 2022


Il 14/03/22 15:03, Nikolay Sivov ha scritto:
>> This doesn't really make sense to me: pitch is not necessarily a power 
>> of two. I think that either you just test with 64 bytes alignment (and 
>> ignore stronger alignments), or you annotate the tests to know which 
>> require 64 bytes and which require 128 byte.
> 
> All existing tests are already either 64 or 128.

This means that the tests will break as soon as somebody adds larger 
widths for any reason. IMHO a more robust logic would serve us better.

Giovanni.



More information about the wine-devel mailing list