Commit Graph

858 Commits

Author SHA1 Message Date
Detlef Riekenberg 1eb52667ac ddraw/tests: Avoid endless loop, when T&L is not supported. 2008-02-20 12:06:28 +01:00
Michael Stefaniuc 01cba07624 ddraw: Add missing unlock on error path. Found by Smatch. 2008-02-19 20:54:50 +01:00
Alexander Dorofeyev 74c380cb7b ddraw/tests: Add test for palette handling in IDirect3DTexture_Load. 2008-02-19 13:39:24 +01:00
Alexander Dorofeyev cfa40a22c9 ddraw/tests: Split d3d1 initialization and destruction into separate functions.
Slight rewrite to make creating additional D3D1 tests easier.
2008-02-19 13:39:23 +01:00
Alexander Dorofeyev ed44f9d130 ddraw: Fix palette handling in IDirect3DTexture_Load.
This fixes a potential refcounting problem and makes the function fail with NULL
destination texture's palette and non-NULL source palette like it does on native.
2008-02-19 13:39:17 +01:00
Alexander Dorofeyev ddd0ec1670 ddraw/tests: Add test for branch instruction with non-zero offset. 2008-02-19 12:06:50 +01:00
Alexander Dorofeyev 4981eda895 ddraw: Fix executebuffer branching with non-zero offset.
Fixes a crash in Moto Racer 2.
2008-02-19 12:06:38 +01:00
Roderick Colenbrander 1079f37407 wined3d: When DDCAPS_ALLOW256 is set, palette entry 0 and 255 are filled with black and white. 2008-02-19 12:06:25 +01:00
Francois Gouget 4c8e218252 Assorted spelling fixes. 2008-02-15 12:09:24 +01:00
Reece H. Dunn 8354995482 ddraw: Spelling fixes in the d3d test output. 2008-02-06 13:49:45 +01:00
Stefan Dösinger 8ad3a1f49e ddraw: Some drivers return a refresh rate of 0. 2008-02-06 12:43:53 +01:00
Francois Gouget 20b41af9f1 ddraw/tests: Fix compilation on systems that don't support nameless unions. 2008-02-05 12:19:37 +01:00
Francois Gouget d0794c4aeb Assorted spelling fixes. 2008-01-23 21:16:22 +01:00
Lei Zhang 8bbb3d68e1 ddraw: Register the DirectDraw 7 Object. 2008-01-23 11:31:42 +01:00
Alexander Dorofeyev 320e253805 ddraw/tests: Add test for D3DTBLEND_MODULATE. 2008-01-22 11:19:34 +01:00
Alexander Dorofeyev 6810ebb4c1 ddraw: Fix handling of alpha with D3DTBLEND_MODULATE. 2008-01-22 11:19:18 +01:00
Francois Gouget 44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Francois Gouget 7478d9c44d ddraw/tests: Fix compilation on systems that don't support nameless unions. 2008-01-16 12:46:09 +01:00
Alexander Dorofeyev d14ef91c92 ddraw/tests: Add test for rendering vertices with zero rhw. 2008-01-08 12:53:31 +01:00
Peter Dons Tychsen 6e8b7c4cef ddraw: Add missing pitch in callback from EnumDisplayModes(). 2008-01-04 13:55:12 +01:00
Andrew Talbot f074c0e162 ddraw: Remove unneeded casts. 2008-01-02 12:38:41 +01:00
Alexander Dorofeyev 18143f693b ddraw: Remove redundant iface<->impl casts in IDirect3DTextureImpl_Load.
The implementation pointer retrieved from interface ptr wasn't being used for
anything except retrieving same interface ptr back.
2007-12-31 17:48:39 +01:00
Alexander Dorofeyev 9dbdacbd82 ddraw: Release palette interfaces. 2007-12-31 17:48:16 +01:00
Alexander Dorofeyev f4337b4714 ddraw: Fix incorrect WARN text. 2007-12-17 12:38:43 +01:00
Francois Gouget 05170942de ddraw/tests: Fix compilation on systems that don't support nameless unions. 2007-12-10 12:06:09 +01:00
Alexander Dorofeyev 4051a09eb2 ddraw: Fix wrong initialization order in IDirect3DDevice vtable. 2007-12-08 19:54:51 +01:00
Stefan Dösinger f700cbe74b wined3d: Add an alpha blending test. 2007-12-07 16:26:43 +01:00
Stefan Dösinger f29d947f6a ddraw: Set X8R8G8B8 for 32 bpp. 2007-12-07 16:26:31 +01:00
Francois Gouget 90834020da ddraw: Modify DDRAW_dump_(DWORD|PTR|DDCOLORKEY|DDSCAPS2|pixelformat)() to print a trailing '\n'. 2007-12-07 14:52:56 +01:00
Francois Gouget 6a8f961e08 ddraw: Rename DDRAW_dump_flags_() to DDRAW_dump_flags_nolf() to clarify its difference from DDRAW_dump_flags(). 2007-12-07 14:52:51 +01:00
Andrew Talbot 1f73a97a5a ddraw: Remove unneeded casts. 2007-12-06 12:07:41 +01:00
Andrew Riedi 63f4b6f024 ddraw: DPRINTF -> TRACE. 2007-12-05 12:34:33 +01:00
Stefan Dösinger 3cc253c557 wined3d: Enabling too many lights is silently ignored.
I'm resending this patch because my reply to Henri's concern came too late. 
Henri noted that I am enabling lights that do not exist. Existing tests show 
that if no light is assigned to the index, LightEnable creates a light with a 
set of default parameters, so the tests should be fine.

From 9ee4c61805b50886f79e87d744b52f27b7b00b4e Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan@codeweavers.com>
Date: Thu, 29 Nov 2007 13:22:47 +0100
Subject: [PATCH] WineD3D: Enabling too many lights is silently ignored

This patch adds tests for all d3d versions that show that Windows
pretends that enabling more lights than supported succeeds. D3D_OK is
returned, and the light is reported as enabled.

What is not tested in this patch is the rendering output of this
situation, thus the FIXME is still written.
2007-12-03 13:44:07 +01:00
Stefan Dösinger 714991bf3f ddraw: Fix a test for Vista. 2007-11-07 12:08:07 +01:00
Stefan Dösinger f9dba29477 ddraw: Be less picky about float precision. 2007-11-07 12:08:00 +01:00
Stefan Dösinger 0d016254a0 wined3d: Don't test D3DDEVICE surfaces in dsurface tests. 2007-11-05 13:24:36 +01:00
Stefan Dösinger 848650d908 ddraw: Downgrade the SetCooperativeLevel FIXME to a TRACE. 2007-10-10 11:59:33 +02:00
Stefan Dösinger 7a445747ea ddraw: Do not fail on surface creation errors, skip instead. 2007-10-10 11:59:26 +02:00
Stefan Dösinger c5055fb3eb ddraw: Cope with Init3D failures. 2007-10-10 11:58:37 +02:00
Roderick Colenbrander 03fa9f8730 ddraw: Fix RegDeleteTreeA/W compile issues when building ddraw for Windows. 2007-10-01 14:17:09 +02:00
Stefan Leichter b78736a4bb ddraw: Remove 'recursive registry key delete' function. 2007-09-25 11:19:03 +02:00
David Hedberg 019cc506a8 ddraw: Enumerate additional devices in IDirect3D7_EnumDevices. 2007-09-10 16:47:30 +02:00
David Hedberg c53487b599 ddraw: Fix and test case for situation where DDSD_MIPMAPCOUNT is set and dwMipMapCount is 0. 2007-09-10 15:29:46 +02:00
Stefan Dösinger d0fdb1ea7e d3d: Add a test for double surface locking. 2007-08-31 11:25:19 +02:00
Stefan Dösinger a06e002e93 wined3d: Add a wined3d private WINED3DSBT_RECORDED. 2007-08-15 09:36:20 +02:00
Francois Gouget 5b375aec71 ddraw: Better match the PSDK types and fix the winapi_check warnings. 2007-08-08 15:32:03 +02:00
Stefan Dösinger 2d15cb8b27 d3d: Add a simple offscreen rendering test. 2007-08-08 15:32:00 +02:00
Stefan Dösinger 89dccc7c7c ddraw: Implement IDirect3DDevice7::DrawIndexedPrimitiveStrided. 2007-08-08 15:32:00 +02:00
Stefan Dösinger df75a7e007 ddraw: SetDisplayMode may fail. 2007-08-03 12:30:21 +02:00
Stefan Dösinger 1f4d71c0f6 ddraw: Some drivers return DDERR_INVALIDPARAMS if DXTn surfaces aren't supported. 2007-08-03 12:30:03 +02:00