D3DRM Implementation patches upto CreateDeviceFromSurface

Aaryaman Vasishta jem456.vasishta at gmail.com
Wed Jul 8 12:58:34 CDT 2015


CreateDeviceFromD3D will be pushed as soon as patch 9 is finalised. The
main concern right now is the thunking of the Release methods of the device.

This concern comes up from the fact that the CreateDeviceFromSurface
methods from all 3 versions behave the same way except for one difference
in version 3, which I mention below.

When you create a device from IDirect3DRM3::CreateDeviceFromSurface and
release it, native will also destroy the depth surface attached to it (if
it created it internally), otherwise it'll let the application keep the
reference to the depth surface it created.

Other than the above peculiarity, the behaviour is identical.

I've attached all the commits which lead to the point of implementing
CreateDeviceFromSurface.

Please, review the patches as much as you'd like and if possible, provide
feedback and suggestions on any improvements that can be made, possible
comments required, any stupid mistakes I made etc. :)


Thank you!
Aaryaman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150708/a5934487/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PATCH-1-2-d3drm-tests-Add-test-for-IDirect3DRM-Creat.patch
Type: text/x-diff
Size: 10096 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150708/a5934487/attachment-0009.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-PATCH-2-2-d3drm-tests-Add-test-for-IDirect3DRM-Creat.patch
Type: text/x-diff
Size: 9737 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150708/a5934487/attachment-0010.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-d3drm-Add-stubs-for-IDirect3DRMDevice-methods.patch
Type: text/x-diff
Size: 11464 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150708/a5934487/attachment-0011.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-d3drm-Add-version-specific-tests-for-CreateDeviceFro.patch
Type: text/x-diff
Size: 73935 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150708/a5934487/attachment-0012.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-d3drm-Implement-IDirect3DRM-2-3-CreateDeviceFromClip.patch
Type: text/x-diff
Size: 14868 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150708/a5934487/attachment-0013.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-d3drm-Implement-IDirect3DRM-CreateDeviceFromClipper.patch
Type: text/x-diff
Size: 5025 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150708/a5934487/attachment-0014.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-d3drm-Implement-GetDirect3DDevice2.patch
Type: text/x-diff
Size: 4792 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150708/a5934487/attachment-0015.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-d3drm-Implement-GetDirect3DDevice.patch
Type: text/x-diff
Size: 3887 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150708/a5934487/attachment-0016.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-d3drm-Implement-IDirect3DRM-CreateDeviceFromSurface-.patch
Type: text/x-diff
Size: 14557 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150708/a5934487/attachment-0017.patch>


More information about the wine-devel mailing list