summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/d3d1x
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-09-27 15:40:41 +0200
committerLuca Barbieri <[email protected]>2010-09-27 22:20:52 +0200
commitf1afa8794e9dffa1f91a68c1c6aacb60aea54a18 (patch)
tree18ca4df3b8956e95ab3826a4d6b6f9298274a72d /src/gallium/state_trackers/d3d1x
parentdfc546c047b0f6df254586e991f656faa781ddba (diff)
d3d11: ignore StructureByteStride
D3D11 applications are allowed to pass a random value if the buffer is not structured
Diffstat (limited to 'src/gallium/state_trackers/d3d1x')
-rw-r--r--src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h
index 1ecd67ca474..b7c6a44ab86 100644
--- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h
+++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h
@@ -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);