Module: vkd3d Branch: master Commit: e88d6f4f2a7ad1b7d7b3b8ed9f5ab02c8b5ab018 URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=e88d6f4f2a7ad1b7d7b3b8ed...
Author: Józef Kucia jkucia@codeweavers.com Date: Tue Apr 2 12:15:54 2019 +0200
test: Test root CBV descriptor with big buffer.
This test is for commit 22330b541446b62f10ef7d03dff709318420757a.
Signed-off-by: Józef Kucia jkucia@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
tests/d3d12.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/d3d12.c b/tests/d3d12.c index 9a17a71..00005c4 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -10477,6 +10477,7 @@ static void test_immediate_constant_buffer(void) 0x0010000a, 0x00000000, 0x06000036, 0x00102042, 0x00000000, 0x0090902a, 0x0010000a, 0x00000000, 0x0100003e, }; + static const unsigned int MAX_CB_SIZE = D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT * sizeof(struct vec4); static const D3D12_SHADER_BYTECODE ps = {ps_code, sizeof(ps_code)}; static struct vec4 expected_result[] = { @@ -10501,7 +10502,7 @@ static void test_immediate_constant_buffer(void) context.pipeline_state = create_pipeline_state(context.device, context.root_signature, desc.rt_format, NULL, &ps, NULL);
- cb = create_upload_buffer(context.device, sizeof(index), NULL); + cb = create_upload_buffer(context.device, 2 * MAX_CB_SIZE, NULL);
for (i = 0; i < ARRAY_SIZE(expected_result); ++i) {