d3d8/9 swapchain flip

Stefan Dösinger stefandoesinger at gmail.com
Fri Sep 4 12:13:37 CDT 2015


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

Hi Henri,

I'm sending my current swapchain flipping patches for you to look at
in case you have any comments.

A few notes:

*) It doesn't involve the front buffer yet, it only cycles through the
back buffers. Patch 8 has a few comments about that.

*) The first interesting patch is patch 4. I am updating the
wined3d_surface pointers in each d3d9_surface in the swapchain and
adjust the d3d9 surface's parents.

*) The other interesting parts are patch 7 and 8. If a view is created
for a swapchain texture I'm storing the swapchain + buffer index in
the view. When the view is used the texture is fetched from the
swapchain. Alternatively I could maintain a list of views that are
created for each texture and modify the views in present. With the
current way we don't have to worry about how many views there are, but
it makes looking up the actual texture slightly more expensive.

So far this is only implemented for render target views, but the same
approach should work for shader resource views.

Before sending this I'm going to remove the back buffer type from the
wined3d interface. It's not used anywhere according to MSDN, and none
of the stereo hacks out there (occulus rift, ati quad buffer, nvidia
3d vision) use it.

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

iQIcBAEBAgAGBQJV6dE/AAoJEN0/YqbEcdMwZQ4P+weZy8ymZAp8pHgMztjuQRIC
dUXaVO3hhoj6l6q/a2l27VDPnON81FBUADHG/Mk00MNOi0K/7IlHvKW5cEx54hV6
HsmRdtq1Kp9HLhgDTGJqy2yMhg9K9ugg5+u0ouQUxxxFdhDxhwlwDlfOGQvUkXL8
+SqAM5lB6wnDxVQ5OOlip2yJDEXYimL2e6QQOXaRpyWnciKUqd9Rs1RrFObLCnBK
OC7rGpkCg0jmI6cKCsNEUrA+3ihz+zl+E7XU+W/g454oGTO3dKRI68iqrfN1wNB5
JfOzwIyHIdHTZOuuXZ+66Z8qqSxx8XcvyjEiKuN/bnvVCjGB+zLnqi10sKHD8yJv
2FE9AKFb6Kwyty9zLw2AMC/8Ch/Fh0s75TzhDm0cywORDwx94ApSDCF0R+ryQ+h8
QYhTpj187lQum1Egmti7PlHQRVCDv+sblyssdGvwDIYqmyfSoBARCILO08bKSGsd
9teITH2yfYYiChbf05n1aDzYyTwNRf52/p7xSHtfzaSR/U7G/tO7nvpXUuQjoPso
je87AM2WJk0JSlfifCUn6qQ4j+aXLftUzzvqPSNRTmhw4uuO7Y1cxg7kp0ORwpC7
nEFrR/AaPJyGg/Hcy69LsNwokv/qlT1FgFrhnZrI2Rauop3dt4rZQSou2id2fo+J
OQG8vE6dUux/GGHPIPIk
=W1o8
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flip.tar.bz2
Type: application/x-bzip
Size: 12459 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150904/6719192e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flip.tar.bz2.sig
Type: application/pgp-signature
Size: 543 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150904/6719192e/attachment.sig>


More information about the wine-devel mailing list