[PATCH 4/5] wined3d: Set GL_UNPACK_ALIGNMENT to 1 when uploading surfaces from user memory.

Stefan Dösinger stefandoesinger at gmail.com
Wed Feb 11 03:46:27 CST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 2015-02-10 um 22:05 schrieb Henri Verbeet:
> What's a bit awkward about this is that if the pitch isn't a
> multiple of the pixel byte width it's still not going to work. But
> I guess this is the best we can do.
Does this ever happen? D3D9 doesn't allow specifying a manual pitch,
and ddraw has at most 4 byte pixels and enforces a pitch alignment of
4 according to our tests.

Technically 24-bit RGB8 can have a misaligned pitch, but that isn't
supported anywhere.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJU2yTzAAoJEN0/YqbEcdMwLhIQAIkLV+BPTLJ2slTNnXHPoVM7
P3TnhzWoHh27bMSoWDU97SeMe4cfRFuSmBPKxaKtKVJJXM6y/3sFQ6297o4Ki/3p
hkxZ6uS8unb5VFT3SkTDRjo+F0s6RIfS2qwBzJuCuPhwhDZsjgPkxE2Y8PQhCKb9
9JbEwmIgcgQRqdTx+BEDD4ZmxBqZl3kcRupaLQcmIrmlb/DDgXtuAoWb73YI3E0+
Mlg8R4XM5dCBJnhbVnp1CIgBV5yJx5VnbhOQdSomqe+blqNFh32g//X/Qbh61LBv
beR+dt0howlGtBXOE3Rwtv3tnOC2RnpcLPsjHbR4w/RmRGgabKLa1N9X11KaF0ek
Oie3fsW0m7sJzfvfZzprpZloXtT/gqcarpU9h1CBSvAx2p6i6RhQRzN0LyU/Cvrh
Ckjt7UVJ+OVrAMxIc7vzkSDJ8pb/qvEkmJQYygZeIZaBGrpYk4AtDJJ76W1rxi5f
jbrOS+yJSDyJ+bXTrAOw9igWxqVA9MR51stZUjhYu9prhjSd2qrelnu8kGPT+zqr
sWdOq5AxdBWYdDzP3m/lQfaSUvsoDkgNcGkITWClKBgCJ+4BdWrhbU4f0ZO+NrGl
WCUAoVg8ZAhQilpSnm+yTw2zHeb+rbpqeEMESmFI1pqpRJtRMpH6FC3vMsgNTyKF
7tJNcTfWwJxDKRi5+fn7
=4PUD
-----END PGP SIGNATURE-----



More information about the wine-devel mailing list