d3d11: ignore StructureByteStride
authorLuca Barbieri <luca@luca-barbieri.com>
Mon, 27 Sep 2010 13:40:41 +0000 (15:40 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Mon, 27 Sep 2010 20:20:52 +0000 (22:20 +0200)
D3D11 applications are allowed to pass a random value if the buffer
is not structured

src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h

index 1ecd67ca474081037cc6dca9a6b17835181fcf1b..b7c6a44ab8635a0b71995ce362e480bc18f22a15 100644 (file)
@@ -804,10 +804,6 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen
        {
                SYNCHRONIZED;
 
-#if API >= 11
-               if(desc->StructureByteStride > 1)
-                       return E_NOTIMPL;
-#endif
                struct pipe_resource* resource;
                DXGI_USAGE dxgi_usage = d3d_to_dxgi_usage(desc->BindFlags, desc->MiscFlags);
                HRESULT hr = create_resource(PIPE_BUFFER, desc->ByteWidth, 1, 1, 1, 1, DXGI_FORMAT_R8_UNORM, 0, desc->Usage, desc->BindFlags, desc->CPUAccessFlags, desc->MiscFlags, initial_data, dxgi_usage, out_buffer ? &resource : 0);