mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
d3d11: ignore StructureByteStride
D3D11 applications are allowed to pass a random value if the buffer is not structured
This commit is contained in:
parent
dfc546c047
commit
f1afa8794e
1 changed files with 0 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue