Commit Graph

196 Commits

Author SHA1 Message Date
Nikolay Sivov e3595a21de d3drm/tests: Added a helper to create test window.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-06 13:47:22 +02:00
Nikolay Sivov 12967d88e5 d3drm: Consolidate GetClassName() implementation, reduce tests duplication.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-06 13:47:19 +02:00
Nikolay Sivov 99e0442acc d3drm: Fix IDirect3DRMMeshBuilder::QueryInterface to support IDirect3DRMObject and IDirect3DRMVisual.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 19:47:52 +02:00
Nikolay Sivov c75c8e7f53 d3drm: Fix IDirect3DRMMesh::QueryInterface to support IDirect3DRMObject and IDirect3DRMVisual.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 19:47:50 +02:00
Nikolay Sivov d3e47919bc d3drm: Implement CreateTextureFromSurface() and related methods.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 19:47:47 +02:00
Nikolay Sivov 824c46207d d3drm/tests: Some tests for creating texture from ddraw surface.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 19:47:45 +02:00
Henri Verbeet f41db1a163 d3drm/tests: Fix some reference leaks.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-06 11:29:26 +09:00
Aaryaman Vasishta 7297d4a863 d3drm: Implement IDirect3DRMViewport*::Clear.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-19 20:32:15 +09:00
Aaryaman Vasishta be90480c3c d3drm: Implement IDirect3DRMFrame*::GetScene.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-16 22:39:00 +09:00
Aaryaman Vasishta 17f80954e3 d3drm: Implement IDirect3DRMViewport*::GetDevice.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-01 09:57:01 -05:00
Aaryaman Vasishta 364713804b d3drm/tests: Add QueryInterface tests for IDirect3DRMViewport*.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-01 09:56:59 -05:00
Aaryaman Vasishta 071951711b d3drm/tests: Add viewport validation tests.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-01 09:56:56 -05:00
Aaryaman Vasishta c17fd6a859 d3drm: Implement IDirect3DRMViewport::GetDirect3DViewport.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-01 09:56:53 -05:00
Aaryaman Vasishta 202df3e1ec d3drm: Implement IDirect3DRM*::CreateViewport.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-01 09:56:50 -05:00
Aaryaman Vasishta 74b27abb63 d3drm: Implement IDirect3DRMViewport*::Init.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-01 09:56:46 -05:00
Francois Gouget 429e5325f3 d3drm/tests: Spelling fixes for a couple of ok() messages.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-27 22:21:14 +09:00
Henri Verbeet fe3a78ba99 d3drm/tests: Fix some IDirect3D2 reference leaks.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-21 23:36:06 +09:00
Aaryaman Vasishta 5fca0a70af d3drm: Implement IDirect3DRMDevice{2-3}::InitFromD3D2.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 19:59:31 +09:00
Aaryaman Vasishta 3d343d6eee d3drm: Implement IDirect3DRMDevice*::InitFromD3D.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 19:59:31 +09:00
Aaryaman Vasishta 88fc3a3ef5 d3drm: Fix IDirect3DRMDevice{2-3}::GetDirect3DDevice2 return values on failure.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 21:34:51 +09:00
Aaryaman Vasishta 9729d15a1a d3drm: Fix device not assigning width and height after creation.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 00:26:49 +09:00
Francois Gouget 4046616efd d3drm/tests: Fix typos in a couple of ok() messages.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 23:05:46 +09:00
Aaryaman Vasishta 88f6c2aa2e d3drm/tests: Modify all QI tests to compare vtables.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 00:23:55 +09:00
Aaryaman Vasishta 431f613beb d3drm/tests: Fix some missing HRESULT returns in test_frame_qi.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-09 21:57:23 +09:00
Aaryaman Vasishta c4aaf35d2b d3drm: Implement IDirect3DRMTexture*_GetImage.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-23 14:08:37 +09:00
Aaryaman Vasishta 07d0804603 d3drm: Implement IDirect3DRM*_CreateTexture.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-23 14:08:33 +09:00
Aaryaman Vasishta 9511d09852 d3drm: Implement IDirect3DRMTexture{2-3}_InitFromImage.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-23 14:08:30 +09:00
Aaryaman Vasishta 2fe8e29140 d3drm/tests: Add tests for IDirect3DRMTexture{2-3}_InitFromImage.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-26 21:35:50 +09:00
Aaryaman Vasishta c64ce8cdbb d3drm/tests: Replace test_Texture.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-26 21:35:46 +09:00
Aaryaman Vasishta c44d9dad3f d3drm: Implement IDirect3DRM*::CreateObject.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-21 19:02:59 +09:00
Aaryaman Vasishta e62475b0f1 d3drm/tests: Add tests for IDirect3DRMObject::Add/DeleteDestroyCallback.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-12 22:22:35 +09:00
Aaryaman Vasishta 0e6578d16b d3drm/tests: Add tests for IDirect3DRM*::CreateObject.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-12 22:22:31 +09:00
Bernhard Übelacker 82f59928d4 d3drm/tests: Release two retrieved interfaces to allow proper cleanup.
Signed-off-by: Bernhard Übelacker <bernhardu@vr-web.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-31 19:48:55 +09:00
Henri Verbeet d868f85ee8 d3drm/tests: Properly initialise context.obj in test_Viewport().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 12:19:45 +09:00
Nikolay Sivov d5d1a288e9 d3drm: Remove first found callback, not all of them.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 20:54:42 +09:00
Nikolay Sivov 45743b4d9f d3drm: Implement AddDestroyCallback/DeleteDestroyCallback for a viewport.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 22:29:01 +09:00
Nikolay Sivov b54afbc3a1 d3drm: Support IDirect3DRMObject in viewport QI.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 21:36:03 +09:00
Nikolay Sivov 7cf81baca4 d3drm: Implement SetAppData/GetAppData for a viewport.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 23:30:27 +09:00
Aaryaman Vasishta 858ea7a76e d3drm/tests: Add QueryInterface tests for IDirect3DRMTexture*.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:16 +09:00
Aaryaman Vasishta 889176b9d2 d3drm/tests: Add texture loading tests.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-17 15:39:57 +09:00
Bernhard Übelacker 669a49e1a2 d3drm/tests: Add missing DestroyWindow.
Signed-off-by: Bernhard Übelacker <bernhardu@vr-web.de>
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-16 21:18:25 +09:00
Aaryaman Vasishta 48891483f5 d3drm/tests: Add QueryInterface tests for IDirect3DRMDevice*. 2015-08-21 21:51:15 +09:00
Aaryaman Vasishta c453cb7023 d3drm: GetDirect3DDevice2 returns D3DRM_OK when IDirect3DDevice2 is not available. 2015-08-21 21:50:55 +09:00
Aaryaman Vasishta ed1d4f86c3 d3drm: Implement IDirect3DRM{2-3}::CreateDeviceFromD3D. 2015-08-21 21:50:43 +09:00
Aaryaman Vasishta 9603125efc d3drm: Implement IDirect3DRM::CreateDeviceFromD3D. 2015-08-21 21:50:37 +09:00
Aaryaman Vasishta 27f7174d71 d3drm: Implement IDirect3DRM{2-3}::CreateDeviceFromSurface. 2015-08-18 14:40:56 +09:00
Aaryaman Vasishta 35b17f50f1 d3drm: Implement IDirect3DRM::CreateDeviceFromSurface. 2015-08-18 14:40:54 +09:00
Aaryaman Vasishta a5d09b6bd7 d3drm: Implement IDirect3DRMDevice{2-3}::GetDirect3DDevice2. 2015-08-18 14:40:50 +09:00
Aaryaman Vasishta 27cc84d143 d3drm: Implement IDirect3DRM{2-3}::CreateDeviceFromClipper. 2015-08-18 14:40:46 +09:00
Aaryaman Vasishta 0041c56004 d3drm: Implement IDirect3DRMDevice*::GetDirect3DDevice. 2015-08-18 14:40:43 +09:00