cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

naysayer
Journeyman III

Crash on R9 GPUs in IDirect3D9::CreateDevice

I am in a situation where the following code is crashing on R9s:

----------------------

    D3DPRESENT_PARAMETERS present;

    fill_out_present(&present, width, height, should_vsync);

    UINT AdapterToUse = D3DADAPTER_DEFAULT;

    D3DDEVTYPE DeviceType = D3DDEVTYPE_HAL;

    int d3dflags = D3DCREATE_HARDWARE_VERTEXPROCESSING;

    HRESULT hr;

    hr = sys->d3d_object->CreateDevice(AdapterToUse, DeviceType,

                                       sys->my_hwnd,

                                       D3DCREATE_HARDWARE_VERTEXPROCESSING,

                                       &present, &d3d_device);

----------------------

(Defn of fill_out_present omitted for now).

I guess either the driver does not like something about the window or something about the D3DPRESENT_PARAMETERS, but this is code that has been running across all GPUs fine for years for millions of customers.

You can repro this just by downloading the game Braid from Steam and trying it on an R9 with the latest drivers (13.12).

I have reports of crashes on some Radeon HD cards as well but have not been able to repro those locally; but the R9 is a 100% repro.

Has anyone seen this? Anyone know what is going on? I would like to at least push out a workaround today.

0 Likes
0 Replies