[PATCH v2 6/6] d3d11/tests: Add tests for constant buffer offsetting.

Henri Verbeet hverbeet at gmail.com
Mon Jul 12 09:40:05 CDT 2021


On Fri, 9 Jul 2021 at 00:18, Zebediah Figura <zfigura at codeweavers.com> wrote:
> +    ID3D11DeviceContext1_PSGetConstantBuffers1(context, 1, 2, ret_buffers, offsets, counts);
> +    ok(ret_buffers[0] == buffers[0], "Got buffer %p.\n", ret_buffers[0]);
> +    ok(ret_buffers[1] == buffers[1], "Got buffer %p.\n", ret_buffers[1]);
> +    ok(offsets[0] == 0, "Got offset %u.\n", offsets[0]);
> +    ok(offsets[1] == 16, "Got offset %u.\n", offsets[1]);
> +    ok(counts[0] == 16, "Got count %u.\n", counts[0]);
> +    ok(counts[1] == 16, "Got count %u.\n", counts[1]);
> +    ID3D11Buffer_Release(ret_buffers[0]);
> +    ID3D11Buffer_Release(ret_buffers[1]);
> +
This ends up failing (and then crashing) here on Windows.

And indeed, my driver reports "FALSE" for
D3D11_FEATURE_DATA_D3D11_OPTIONS.ConstantBufferOffsetting. Conversely,
we should probably report the feature as supported in Wine.



More information about the wine-devel mailing list