Commit Graph

457 Commits

Author SHA1 Message Date
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 e81d495357 d3drm: Move IUnknown methods of viewports from version 1->2.
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-03 10:18:52 +09:00
Aaryaman Vasishta 49f37796d5 d3drm: Rearrange version 1 functions after version 2 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-07-03 10:18:50 +09:00
Aaryaman Vasishta be7bca55e3 d3drm: Introduce d3drm_viewport_destroy().
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-03 10:18:47 +09:00
Aaryaman Vasishta 94bab100a4 d3drm: Use a table in d3drm3_CreateObject() to create objects in a generic manner.
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-03 10:18:44 +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 f585faff6b d3drm: Fix viewport object 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-06-21 00:23:55 +09:00
Aaryaman Vasishta e6feb9b031 d3drm: Fix frame object creation method.
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 e6f11af272 d3drm: Add stubs for IDirect3DRMFrame interface.
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 ad1d0f4f15 d3drm: Rearrange version 2 functions after version 3 for IDirect3DRMFrame*.
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:54 +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 07c038c2b4 d3drm: Introduce d3drm_texture_destroy helper.
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:26 +09:00
Aaryaman Vasishta bebe679d51 d3drm: Keep a reference to IDirect3DRM in d3drm_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-05-23 14:08:17 +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 e5e499d399 d3drm: Use ref and appdata from d3drm_object in d3drm_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-25 18:48:19 +09:00
Aaryaman Vasishta 93c2196189 d3drm: Use sizeof instead of strlen in d3drm_texture3_GetClassName.
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-25 18:48:19 +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 460af458fd d3drm: Implement Add/Delete destroy callbacks 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-04-19 21:25:42 +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
Aaryaman Vasishta b05b96a0e2 d3drm: Move struct d3drm_texture to header for global access.
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-03-22 23:51:30 +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
Michael Stefaniuc 62277fb777 d3drm: Use debugstr_a to print a string that can be NULL.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-14 22:24:50 +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 47913f1c1c d3drm: Fix QueryInterface 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
Nikolay Sivov 175e68fe05 d3drm: Avoid HRESULT codes for BOOL retval methods (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 22:20:30 +09:00
Nikolay Sivov f6689b6ce2 d3drm: Avoid HRESULT codes for BOOL retval methods (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 22:19:18 +09:00
Aaryaman Vasishta 9eb5361d5a d3drm: Add stubs for IDirect3DRMTexture methods. 2015-08-25 21:09:36 +09:00
Aaryaman Vasishta a883c6207d d3drm: Thunk relevant texture methods from version 2->3. 2015-08-25 21:09:34 +09:00
Aaryaman Vasishta 895e4a1f66 d3drm: Thunk IDirect3DRMTexture2::QueryInterface to version 3. 2015-08-25 21:09:30 +09:00
Aaryaman Vasishta ed411d9701 d3drm: Thunk IDirect3DRMTexture2::Release to version 3. 2015-08-25 21:09:26 +09:00
Aaryaman Vasishta 0c06bb7a81 d3drm: Thunk IDirect3DRMTexture2::AddRef to version 3. 2015-08-25 21:09:23 +09:00
Aaryaman Vasishta 48891483f5 d3drm/tests: Add QueryInterface tests for IDirect3DRMDevice*. 2015-08-21 21:51:15 +09:00
Aaryaman Vasishta a9bde7f85b d3drm: Fix IDirect3DRMDevice3_QueryInterface returning incorrect HRESULT on unsupported interfaces. 2015-08-21 21:51:10 +09:00
Aaryaman Vasishta d8329ecfa8 d3drm: Add IDirect3DRMObject to be queried from IDirect3DRMDevice*. 2015-08-21 21:51:02 +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