Commit graph

581 commits

Author SHA1 Message Date
Nikolay Sivov
1de01fcaa6 d3drm/tests: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-14 13:13:01 +01:00
Nikolay Sivov
55fbd32b16 d3drm: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-14 13:13:01 +01:00
Jeff Smith
3c914dc2ae d3drm: Fix components of palette when loading texture from 8-bit BMP file. 2022-07-25 23:06:57 +02:00
Jeff Smith
293c6d24e3 d3drm: Fix components of palette built when loading texture from file.
Fix the palette-building code used by IDirect3DTexture::InitFromFile
to use color components correctly. Also, fix and expand the tests to
properly check the components of a built palette.
2022-07-21 20:21:15 +02:00
Jeff Smith
77189a341f d3drm/tests: Clean up some magic values.
In BMP files with 24-bit depth, color components are stored in BGR
order. Due to magic values being used several places in tests to reduce
the components, some logical errors are hard to spot.

Give names to the magic values to make logical errors more apparent.
2022-07-21 20:21:03 +02:00
Alistair Leslie-Hughes
b581165950 d3drm: Return S_OK from IDirect3DRMMeshBuilder3::Optimize().
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-06-20 23:26:50 +02:00
Alistair Leslie-Hughes
88c29c3ff0 d3drm: Pass all D3DRM_LOAD* flags directly through to CreateEnumObject() in IDirect3DRMMeshBuilder3::Load().
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2022-06-16 11:39:22 +02:00
Rémi Bernon
902a894900 d3drm: Avoid using pointer value after free.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-06-15 11:53:29 +02:00
Alistair Leslie-Hughes
a8a126c4a3 d3drm: Implement IDirect3DRMTexture3::{Get,Set}DecalSize(). 2022-05-30 22:07:43 +02:00
Alistair Leslie-Hughes
66c8cb3ee9 d3drm: Implement IDirect3DRMTexture3::{Get,Set}DecalTransparency().
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-05-30 22:07:43 +02:00
Nikolay Sivov
54c27f69f6 d3drm/tests: Use test context for test ran in a loop.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-23 20:49:45 +02:00
Alistair Leslie-Hughes
0f44081775 d3drm: IDirect3DRMTexture3 Get/SetShades.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-19 18:30:58 +02:00
Alistair Leslie-Hughes
90b2a8e11e d3drm: IDirect3DRMTexture3 Get/SetColors.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-19 18:30:56 +02:00
Alistair Leslie-Hughes
913c82e48c d3drm: IDirect3DRMTexture3 Get/SetDecalOrigin.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-19 18:30:54 +02:00
Alistair Leslie-Hughes
b8f67bf78d d3drm: IDirect3DRMMeshBuilder2 Get/SetQuality.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-19 18:30:51 +02:00
Nikolay Sivov
6ff9e47fb7 d3drm/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-13 22:11:41 +02:00
Alistair Leslie-Hughes
5582c4d6fb d3drm: Support IDirect3D3 when creating device.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39346
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Nikolay Sivov
c699803ff0 d3drm: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-07 22:44:39 +02:00
Alexandre Julliard
f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard
6d3cbb5c70 d3drm: Fix a prototype mismatch.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:56 +01:00
Stefan Dösinger
79ea8056b6 d3drm/tests: Do not depend on a todo_wine result more than necessary.
This addresses a failure on the cw-gtx560 testbot machine reported by
Francois.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-15 19:57:46 +01:00
Alexandre Julliard
088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Zhiyi Zhang
a92ab08688 winex11.drv: Support reporting emulated display depth.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-17 20:35:01 +02:00
Alexandre Julliard
bd6b53740c winecrt0: Add a default implementation for DllCanUnloadNow().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Alexandre Julliard
7526f9d434 d3drm: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-22 14:42:08 +01:00
Jeff Smith
f56e409c2f d3drm: Get rid of the "partial stub" FIXMEs in the light creation functions.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-17 00:05:44 +02:00
Jeff Smith
0132054999 d3drm/tests: Test IDirect3DRM_CreateLight().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-17 00:05:44 +02:00
Jeff Smith
12be3c43bd d3drm: Set light alpha to 1.0 in d3drm_light_SetColor().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-17 00:05:44 +02:00
Henri Verbeet
83666361c9 d3drm/tests: Introduce compare_uint().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-30 23:10:07 +02:00
Jeff Smith
5f9ceed14f d3drm: Return ~0u from d3drm_viewport2_GetProjection() for uninitialised viewports.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-28 14:24:06 +01:00
Jeff Smith
afb09525b5 d3drm: Return D3DRMERR_BADOBJECT from d3drm_viewport2_SetProjection() for uninitialised viewports.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-28 14:24:02 +01:00
Jeff Smith
f4bdc4386c d3drm/tests: Add some viewport projection type tests.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-28 14:23:59 +01:00
Jeff Smith
54a1913dec d3drm: Initialise the front and back clip distances in d3drm_viewport2_Init().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-30 22:02:21 +02:00
Jeff Smith
fe03e3637e d3drm: Implement d3drm_viewport2_SetPlane().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-30 22:02:19 +02:00
Jeff Smith
f3adad102d d3drm: Implement d3drm_viewport2_GetPlane().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-30 22:02:16 +02:00
Jeff Smith
70568cd120 d3drm: Implement d3drm_viewport2_SetCamera().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-30 22:02:14 +02:00
Jeff Smith
99a2fec667 d3drm: Implement d3drm_viewport2_GetCamera().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-30 22:02:12 +02:00
Jeff Smith
643e6379a9 d3drm: Return error if setting viewport field-of-view to zero or negative value.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 08:25:46 +02:00
Jeff Smith
d2d64ced53 d3drm: Check for NULL pointer in d3drm_viewport2_GetDirect3DViewport().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 08:25:45 +02:00
Jeff Smith
76a7fe59eb d3drm: Check for NULL pointer in d3drm_viewport2_GetDevice().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 08:25:42 +02:00
Jeff Smith
8fb032916d d3drm: Fix reference leak in d3drm_viewport2_Clear().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-02 20:43:37 +02:00
Jeff Smith
5ebd6117b2 d3drm: CreateViewport checks for non-NULL viewport pointer first.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 13:01:58 +02:00
Jeff Smith
328d002d84 d3drm: Implement d3drm_frame3_Transform().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-20 15:58:11 +02:00
Jeff Smith
c241a9c054 d3drm: Implement d3drm_frame3_AddRotation().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-20 15:58:11 +02:00
Jeff Smith
06321dcb1d d3drm: Implement d3drm_frame3_AddScale().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-20 15:58:11 +02:00
Jeff Smith
11fe8e4b6a d3drm: Implement d3drm_frame3_AddTranslation().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-20 15:58:11 +02:00
Jeff Smith
5309648553 d3drm: Validate that the transformation is affine in d3drm_frame3_AddTransform().
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-20 15:58:11 +02:00
Jeff Smith
c41b4c2c54 d3drm: Implement the BEFORE and AFTER frame transform combine types.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-20 15:58:11 +02:00
Henri Verbeet
203230d149 d3drm: Introduce a d3drm_matrix structure.
Since D3DRMMATRIX4D is just a pain to work with.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-20 15:04:15 +02:00
Jeff Smith
77b881f932 d3drm: CreateDevice is unimplemented on Windows.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-04 19:23:12 +02:00