[PATCH v2 1/2] d3d8: Report d3d8 adapter ordinal in d3d8_device_GetCreationParameters().

Henri Verbeet hverbeet at gmail.com
Fri Mar 20 11:12:17 CDT 2020


On Fri, 20 Mar 2020 at 15:38, Zhiyi Zhang <zzhang at codeweavers.com> wrote:
> +        behavior_flags = D3DCREATE_HARDWARE_VERTEXPROCESSING;
> +        if (FAILED(IDirect3D8_CreateDevice(d3d, adapter_idx, D3DDEVTYPE_HAL, window,
> +                behavior_flags, &present_params, &device)))
> +        {
> +            behavior_flags = D3DCREATE_SOFTWARE_VERTEXPROCESSING;
> +            if (FAILED(hr = IDirect3D8_CreateDevice(d3d, adapter_idx, D3DDEVTYPE_HAL, window,
> +                    behavior_flags, &present_params, &device)))
> +            {
> +                skip("Adapter %u: Failed to create a D3D device, hr %#x.\n", adapter_idx, hr);
> +                break;
> +            }
> +        }
Do we really care that much about the behaviour flags here? It seems
tempting to use create_device() and just drop the relevant ok() line
instead. On the other hand, if we do really care, there's
CREATE_DEVICE_SWVP_ONLY and CREATE_DEVICE_MIXED_ONLY, and we could
conceivably introduce CREATE_DEVICE_HWVP_ONLY.



More information about the wine-devel mailing list