Józef Kucia
252a2ea353
libs/vkd3d-common: Fix assert() condition.
2017-06-21 12:22:19 +02:00
Józef Kucia
f7e738c27a
libs/vkd3d-common: Terminate string with '\0' unconditionally in vkd3d_debug_sprintf().
2017-06-21 12:22:19 +02:00
Józef Kucia
feb5e8259c
libs/vkd3d-shader: Translate dcl_constantbuffer instruction.
2017-06-20 17:09:39 +02:00
Józef Kucia
8b2b2c1b6b
libs/vkd3d-shader: Translate bfi instruction.
2017-06-20 17:09:39 +02:00
Józef Kucia
95b11ba336
libs/vkd3d-shader: Translate dcl_input instructions.
2017-06-20 17:09:39 +02:00
Józef Kucia
88e20980a8
libs/vkd3d-shader: Translate dot product instructions.
2017-06-20 17:09:39 +02:00
Józef Kucia
ddcc403f73
libs/vkd3d-shader: Add missing vkd3d_free() call.
...
Fixes commit 0761568225
.
2017-06-20 14:59:25 +02:00
Józef Kucia
c9a98c7a13
libs/vkd3d-shader: Add support for GLSL.std.450 extended instruction set.
2017-06-20 14:59:25 +02:00
Józef Kucia
801b4159de
libs/vkd3d-shader: Translate some ALU instructions.
2017-06-20 14:14:44 +02:00
Józef Kucia
2b1396e7e4
libs/vkd3d-shader: Translate mov instruction.
2017-06-20 13:34:44 +02:00
Józef Kucia
18e952aaf4
libs/vkd3d-shader: Translate dcl_output_siv instruction.
2017-06-20 13:34:44 +02:00
Józef Kucia
0761568225
libs/vkd3d-shader: Translate dcl_output instruction.
2017-06-20 13:34:44 +02:00
Józef Kucia
d073652db9
libs/vkd3d-shader: Translate dcl_temps instruction.
...
"symbol_table" is possibly not the most fitting name.
2017-06-20 13:34:44 +02:00
Józef Kucia
c270d9a859
libs/vkd3d: Accept DXBC shaders.
2017-06-19 19:49:11 +02:00
Józef Kucia
d32134da48
libs/vkd3d-shader: Implement SM5 dcl_thread_group instruction.
2017-06-19 19:49:11 +02:00
Józef Kucia
6f6d5c7850
libs/vkd3d: Use depth aspect mask for DXGI_FORMAT_D16_UNORM.
2017-06-19 18:19:19 +02:00
Józef Kucia
786a31ca4e
libs/vkd3d-shader: Use libSPIRV-Tools for tracing and validating generated SPIR-V shaders.
...
SPIRV-Tools are an optional dependency.
We link with stdc++ because libSPIRV-Tools is a static library written
in C++.
2017-06-19 18:05:53 +02:00
Józef Kucia
dd31e5e918
libs/vkd3d-shader: Generate SPIR-V modules.
2017-06-19 18:05:53 +02:00
Józef Kucia
eff8428c71
libs/vkd3d-common: Move vkd3d_array_reserve() from libvkd3d.
2017-06-19 18:05:53 +02:00
Józef Kucia
465fe54a9b
libs/vkd3d-shader: Implement vkd3d_shader_compile_dxbc().
2017-06-19 18:05:53 +02:00
Józef Kucia
1f65d4ccc1
libs/vkd3d-shader: Add stub for SPIR-V generator.
2017-06-19 18:05:53 +02:00
Józef Kucia
97c7bc0a18
libs/vkd3d-common: Provide access to current debug level.
2017-06-19 18:05:53 +02:00
Henri Verbeet
5808c280f7
libs/vkd3d: Add DXGI_FORMAT_D16_UNORM.
2017-06-19 14:44:48 +02:00
Henri Verbeet
fc67a3b7fa
libs/vkd3d: Add DXGI_FORMAT_R8G8B8A8_UNORM_SRGB.
2017-06-19 14:44:41 +02:00
Henri Verbeet
d029dc995c
libs/vkd3d: Add DXGI_FORMAT_R8_UINT.
2017-06-19 14:44:33 +02:00
Henri Verbeet
79d731de8a
libs/vkd3d: Add DXGI_FORMAT_R16_FLOAT.
2017-06-19 14:44:19 +02:00
Henri Verbeet
70dbeed14c
libs/vkd3d: Add DXGI_FORMAT_R8_UNORM.
2017-06-19 14:44:07 +02:00
Henri Verbeet
00f514cf1c
libs/vkd3d: Add DXGI_FORMAT_R16_UNORM.
2017-06-19 14:43:55 +02:00
Henri Verbeet
07f12c2947
libs/vkd3d: Add DXGI_FORMAT_R16G16B16A16_FLOAT.
2017-06-19 14:43:45 +02:00
Józef Kucia
ec4ab656df
libs/vkd3d: Add trailing newline to WARN() message in d3d12_command_list_begin_render_pass().
2017-06-16 23:29:37 +02:00
Józef Kucia
4ab5ced2fc
libs/vkd3d-shader: Import DXBC parser from Wine d3d11 implementation.
2017-06-16 22:38:21 +02:00
Józef Kucia
7be0b64a0f
libs/vkd3d-common: Add debugstr_a() function.
2017-06-16 22:38:21 +02:00
Józef Kucia
31c6bfe24f
libs/vkd3d-shader: Import SM4+ bytecode parser from Wine.
2017-06-16 22:38:21 +02:00
Józef Kucia
93458c8933
libs/vkd3d-shader: Add library.
2017-06-16 22:38:21 +02:00
Józef Kucia
0e55ba8933
libs/vkd3d-common: Use ARRAY_SIZE() macro.
2017-06-16 22:38:21 +02:00
Józef Kucia
84889646f6
Update license to LGPL v2.1.
2017-06-16 22:11:21 +02:00
Henri Verbeet
f604f25aba
libs/vkd3d: Add DXGI_FORMAT_R11G11B10_FLOAT.
2017-06-15 15:16:07 +02:00
Henri Verbeet
39d95dcd7f
libs/vkd3d: Add DXGI_FORMAT_R10G10B10A2_UNORM.
2017-06-15 15:15:57 +02:00
Henri Verbeet
39e8b8de25
libs/vkd3d: Add DXGI_FORMAT_R32G32_FLOAT.
2017-06-15 15:15:46 +02:00
Józef Kucia
a680fdd91b
libs/vkd3d: Implement d3d12_command_list_OMSetStencilRef().
2017-03-05 22:23:37 +01:00
Henri Verbeet
cd4f4a2976
libs/vkd3d: Implement d3d12_command_list_SetGraphicsRootConstantBufferView().
2016-11-13 00:51:52 +01:00
Henri Verbeet
0b2702d96e
libs/vkd3d: Implement d3d12_command_list_SetGraphicsRootSignature().
2016-11-13 00:45:25 +01:00
Henri Verbeet
0f38858996
libs/vkd3d: Implement D3D12_ROOT_PARAMETER_TYPE_CBV root signature parameters.
2016-11-13 00:44:19 +01:00
Henri Verbeet
d97df34093
libs/vkd3d: Implement depth/stencil pipeline state attachments.
2016-11-13 00:42:31 +01:00
Henri Verbeet
fa4072a892
libs/vkd3d: Implement d3d12_command_list_DrawIndexedInstanced().
2016-11-10 16:49:22 +01:00
Henri Verbeet
9bb9e63f23
libs/vkd3d: Implement d3d12_command_list_IASetIndexBuffer().
2016-11-10 16:47:12 +01:00
Henri Verbeet
2213e126cf
libs/vkd3d: Implement d3d12_command_list_ClearDepthStencilView().
2016-11-10 16:43:33 +01:00
Henri Verbeet
f252d6cd31
libs/vkd3d: Implement d3d12_device_CreateDepthStencilView().
2016-11-10 16:42:24 +01:00
Henri Verbeet
2e10db6f8e
libs/vkd3d: Add support for D3D12_INPUT_CLASSIFICATION_PER_INSTANCE_DATA.
2016-11-10 16:41:01 +01:00
Henri Verbeet
4142c477ef
build: Add some standard files.
2016-10-28 12:34:12 +02:00
Józef Kucia
4aab207b56
libs/vkd3d: Fix initial state transtion for swapchain images.
2016-10-25 13:23:18 +02:00
Józef Kucia
b9da47ebe2
libs/vkd3d: Implement naive initial state transition.
...
This is not a complete solution yet. In order to allow recording
multiple command list and executing them in any order we have to fix up
the current image layout when submitting a command list instead of when
a command list is being recorded.
2016-10-25 13:23:18 +02:00
Józef Kucia
b011f0b972
libs/vkd3d: Introduce resource flags.
2016-10-25 13:23:18 +02:00
Józef Kucia
0d1550788e
libs/vkd3d: Rename variables in d3d12_command_list_CopyBufferRegion().
2016-10-25 13:23:18 +02:00
Józef Kucia
ec23554b54
libs/vkd3d: Fix memory leak in d3d12_command_allocator_Release().
2016-10-24 15:43:12 +02:00
Józef Kucia
e42a9da943
libs/vkd3d: Use VK_KHR_*_EXTENSION_NAME defines.
2016-10-24 15:28:08 +02:00
Henri Verbeet
fa5b972371
demos/triangle: Add a demo program.
2016-10-24 13:57:05 +02:00
Henri Verbeet
6cbe8626c2
libs/vkd3d: Add DXGI_FORMAT_B8G8R8A8_UNORM_SRGB.
2016-10-24 13:57:05 +02:00
Henri Verbeet
6babf11214
libs/vkd3d: Export a function to get the Vulkan format from a DXGI format.
2016-10-24 13:57:05 +02:00
Henri Verbeet
b760b52859
libs/vkd3d: Export a function to get the Vulkan physical device from a d3d12 device.
2016-10-24 13:57:05 +02:00
Henri Verbeet
c79584ed92
libs/vkd3d: Export a function to get the Vulkan queue family index from a d3d12 command queue.
2016-10-24 13:57:05 +02:00
Józef Kucia
eea8617b9b
libs/vkd3d: GPU virtual address for texture resources is always 0.
2016-10-24 13:20:09 +02:00
Józef Kucia
a5fbcb28f0
libs/vkd3d: Set initial image layout to VK_IMAGE_LAYOUT_UNDEFINED for CPU inaccessible images.
2016-10-24 13:20:09 +02:00
Józef Kucia
e19e428ed0
libs/vkd3d: Check if device memory is CPU accessible in d3d12_resource_Map().
2016-10-24 13:20:09 +02:00
Józef Kucia
3161f346b6
libs/vkd3d: Try to allocate coherent host visible memory for CUSTOM heap.
2016-10-24 13:20:09 +02:00
Józef Kucia
33ef8688ab
libs/vkd3d: Initialize "resource->external" before possible call to d3d12_resource_destroy().
2016-10-20 16:38:04 +02:00
Józef Kucia
fd9f1abb4f
libs/vkd3d: Fix command list resetting.
...
A command list can be resetted to the same command allocator when it is
in use.
2016-10-20 16:38:04 +02:00
Józef Kucia
2189859532
libs/vkd3d: Command allocator can be used with one command list at a time.
2016-10-20 16:38:04 +02:00
Józef Kucia
384bb26ea5
libs/vkd3d: Naming conventions.
2016-10-20 16:38:04 +02:00
Józef Kucia
52211e6c40
libs/vkd3d: Free command buffers on command allocator reset.
2016-10-20 16:38:04 +02:00
Józef Kucia
278cb0103c
libs/vkd3d: Add support for D3D12_RESOURCE_STATE_RESOLVE_* barriers.
2016-10-20 16:38:04 +02:00
Józef Kucia
c41ad774de
libs/vkd3d: Implement UAV barriers.
2016-10-19 16:39:48 +02:00
Józef Kucia
0944475c6a
libs/vkd3d: Implement transition barriers.
2016-10-19 16:39:48 +02:00
Józef Kucia
f2c980af56
libs/vkd3d: Validate resource state for resource barriers.
2016-10-19 16:39:48 +02:00
Józef Kucia
69cd100d48
libs/vkd3d: Validate initial resource state.
2016-10-19 13:10:12 +02:00
Józef Kucia
f601cbc04a
libs/vkd3d: Validate "optimized_clear_value" for buffer resources.
2016-10-19 13:10:12 +02:00
Józef Kucia
60959ecf3c
libs/vkd3d: Add partial support for D3D12_FEATURE_ARCHITECTURE.
2016-10-19 13:10:12 +02:00
Henri Verbeet
e0ba2fd2d3
libs/vkd3d: Export a function to get the Vulkan queue from a d3d12 command queue.
2016-10-19 10:02:53 +02:00
Henri Verbeet
7568a9793c
libs/vkd3d: Export a function to get the Vulkan device from a d3d12 device.
2016-10-19 10:02:27 +02:00
Henri Verbeet
feacd1af50
libs/vkd3d: Export a function to get the Vulkan instance from a d3d12 device.
2016-10-19 10:02:04 +02:00
Henri Verbeet
2a49173b60
libs/vkd3d: Export a function to create a d3d12 resource from a Vulkan image.
2016-10-19 09:59:42 +02:00
Henri Verbeet
fcc9f9b294
libs/vkd3d: Merge vkd3d_vulkan.h into vkd3d_private.h.
2016-10-19 09:58:53 +02:00
Henri Verbeet
8d668205a4
libs/vkd3d-utils: Return a bool from vkd3d_signal_event().
2016-10-19 09:49:52 +02:00
Henri Verbeet
9d5e4daf84
libs/vkd3d-utils: Get rid of unnecessary WINAPI.
2016-10-19 09:48:26 +02:00
Henri Verbeet
53e0839698
libs/vkd3d-utils: Naming conventions.
2016-10-19 09:47:35 +02:00
Józef Kucia
5f187d9e68
libs/vkd3d: Improve diagnostic message for device memory allocation failures.
2016-10-17 14:24:22 +02:00
Józef Kucia
6b681a4037
libs/vkd3d: Return E_INVALIDARG in d3d12_resource_Map() for textures.
2016-10-17 14:24:22 +02:00
Józef Kucia
1e73f2956a
libs/vkd3d: Return S_OK from d3d12_device_GetDeviceRemovedReason().
2016-10-17 14:24:22 +02:00
Józef Kucia
e3fb82d544
libs/vkd3d: Forbid creating textures on UPLOAD/READBACK heaps.
2016-10-17 14:24:22 +02:00
Józef Kucia
fc1c9d914d
libs/vkd3d: Validate initial resource state for UPLOAD/READBACK heaps.
2016-10-17 14:24:22 +02:00
Józef Kucia
1fad443900
libs/vkd3d: Introduce vkd3d_select_physical_device() helper function.
2016-10-13 12:21:00 +02:00
Józef Kucia
f5ecb635fe
libs/vkd3d: Ignore blending parameters when blending is disabled.
2016-10-12 11:46:57 +02:00
Józef Kucia
f503954a77
libs/vkd3d: Ignore draw calls when pipeline state is not set.
2016-10-11 13:43:04 +02:00
Józef Kucia
a1082ec954
libs/vkd3d: Use "< 0" to test VkResult for errors.
...
For consistency.
2016-10-11 13:43:04 +02:00
Henri Verbeet
4a558d5a4a
libs/vkd3d: Implement d3d12_command_list_DrawInstanced().
2016-10-10 17:26:46 +02:00
Henri Verbeet
5c9ea3ede3
libs/vkd3d: Implement d3d12_device_CreateGraphicsPipelineState().
2016-10-10 17:26:38 +02:00
Henri Verbeet
a0ccb1c581
libs/vkd3d: Implement d3d12_command_list_SetPipelineState().
2016-10-10 17:26:13 +02:00
Henri Verbeet
74fe2ec411
libs/vkd3d: Implement d3d12_command_list_OMSetRenderTargets().
2016-10-10 17:26:03 +02:00
Henri Verbeet
7add62e552
libs/vkd3d: Implement d3d12_command_list_IASetVertexBuffers().
2016-10-10 17:25:55 +02:00
Henri Verbeet
ce509dc70e
libs/vkd3d: Implement d3d12_command_list_IASetPrimitiveTopology().
2016-10-10 17:25:40 +02:00
Henri Verbeet
d24982c5f1
libs/vkd3d: Destroy Vulkan render passes and framebuffers on command allocator reset.
2016-10-10 17:25:36 +02:00
Henri Verbeet
3ba5fd949b
libs/vkd3d: Store Vulkan render passes and framebuffers in the command allocator.
...
We should destroy these on resets, but command list resets don't need to wait
for command list execution to complete.
2016-10-10 17:25:31 +02:00
Józef Kucia
ed033b40d0
libs/vkd3d: Fix InterlockedIncrement() and InterlockedDecrement() signatures.
2016-10-10 11:22:50 +02:00
Józef Kucia
a22b594c0a
libs/vkd3d: Accept D3D12_ROOT_SIGNATURE_DESC directly only when all bits of "bytecode_length" are set.
2016-10-10 11:22:50 +02:00
Józef Kucia
59d466af2d
libs/vkd3d: Use PRIx64 to print 64-bit integers.
2016-10-10 11:22:50 +02:00
Józef Kucia
4153810c00
libs/vkd3d: Partially implement d3d12_command_list_CopyTextureRegion().
2016-10-08 14:31:57 +02:00
Józef Kucia
99efb9abe3
libs/vkd3d: Get rid of vk_format_from_dxgi_format().
...
Use vkd3d_get_format() instead.
2016-10-08 14:31:57 +02:00
Józef Kucia
ab883caaff
libs/vkd3d: Introduce vkd3d_format.
2016-10-08 14:31:57 +02:00
Józef Kucia
b112ec1942
libs/vkd3d: Implement d3d12_command_queue_Signal().
2016-10-08 14:31:57 +02:00
Józef Kucia
2a7b614278
libs/vkd3d: Wait for GPU fences in worker thread.
...
This could be implemented without a worker thread, if event objects
would be tightly coupled with ID3D12Fences.
2016-10-08 14:31:57 +02:00
Józef Kucia
2f76260857
libs/vkd3d: Create fence worker thread per device.
2016-10-08 14:31:57 +02:00
Józef Kucia
858e0c79f1
include: Add public header for libvkd3d-utils.
2016-10-07 13:26:39 +02:00
Józef Kucia
c7d123b122
libs/vkd3d: Move event objects implementation to libvkd3d-utils.
...
The libvkd3d is not the best place for event objects implementation.
2016-10-07 13:26:39 +02:00
Józef Kucia
0c1432e671
libs/vkd3d: Move D3D12CreateDevice() to libvkd3d-utils.
2016-10-07 13:26:39 +02:00
Józef Kucia
ef6a3d78a2
libs/vkd3d: Pass signal event function pointer to vkd3d_create_device().
2016-10-07 13:26:39 +02:00
Józef Kucia
544c2668ca
libs/vkd3d: Introduce vkd3d_create_device().
...
We need to pass additional parameters to libvkd3d during initialization.
2016-10-07 13:26:39 +02:00
Józef Kucia
12ea3309f0
libs/vkd3d-utils: Add library.
2016-10-07 13:26:39 +02:00
Józef Kucia
49cac8005c
libs/vkd3d-common: Add convenience library for shared code.
2016-10-07 13:26:39 +02:00
Józef Kucia
c558118f70
libs/vkd3d: Re-use vkd3d_array_reserve() in d3d12_fence_SetEventOnCompletion().
2016-10-05 19:01:57 +02:00
Józef Kucia
b224b6372c
libs/vkd3d: Fix ID3D12Device reference count leak in d3d12_command_list_init().
2016-10-05 18:40:25 +02:00
Józef Kucia
a763bef615
libs/vkd3d: Do not leak "passes".
2016-10-05 18:40:25 +02:00
Józef Kucia
1cabd851b8
libs/vkd3d: Do not leak "framebuffers".
2016-10-05 18:40:25 +02:00
Henri Verbeet
3fe56457f9
libs/vkd3d: Set the initial pipeline state on command list creation/reset.
2016-10-05 17:53:52 +02:00
Henri Verbeet
4c517454b6
libs/vkd3d: Debug output should go to stderr.
2016-10-05 17:53:36 +02:00
Henri Verbeet
b7d594349f
libs/vkd3d: Delay destroying framebuffers until the command list is destroyed.
...
Like render passes, these should only be destroyed after all submitted
commands referring to them have completed execution.
2016-10-05 17:53:19 +02:00
Henri Verbeet
fb6071d108
libs/vkd3d: Delay destroying render passes until the command list is destroyed.
...
Render passes should only be destroyed after all submitted commands referring
to them have completed execution.
2016-10-05 17:52:45 +02:00
Józef Kucia
8ab2ebdd22
libs/vkd3d: Implement d3d12_fence_SetEventOnCompletion().
2016-10-05 15:56:27 +02:00
Józef Kucia
733f720ee4
libs/vkd3d: Add simple replacement for event objects.
...
This naming convention for exported functions is used to be consistent
with other D3D12* functions().
2016-10-05 15:56:27 +02:00
Józef Kucia
a5e13cf53e
libs/vkd3d: Implement d3d12_fence_Signal().
2016-10-05 15:56:27 +02:00
Józef Kucia
8e2d4dc70f
libs/vkd3d: Implement d3d12_command_list_CopyBufferRegion().
2016-10-05 11:34:07 +02:00
Henri Verbeet
42c1e0c0fb
libs/vkd3d: Implement d3d12_command_list_RSSetScissorRects().
2016-09-30 13:35:07 +02:00
Henri Verbeet
c7f6dc53b3
libs/vkd3d: Implement d3d12_command_list_RSSetViewports().
2016-09-30 13:34:50 +02:00
Henri Verbeet
ad811fb418
libs/vkd3d: Implement d3d12_command_list_ClearRenderTargetView().
2016-09-30 13:34:33 +02:00
Henri Verbeet
1b8be72657
libs/vkd3d: Implement d3d12_device_CreateRenderTargetView().
2016-09-30 13:34:17 +02:00
Henri Verbeet
3cc207c28e
libs/vkd3d: Implement d3d12_descriptor_heap_GetCPUDescriptorHandleForHeapStart().
2016-09-30 13:34:00 +02:00
Henri Verbeet
9262f87249
libs/vkd3d: Allocate CPU memory for descriptors.
2016-09-30 13:33:28 +02:00
Henri Verbeet
7db62fe3d8
libs/vkd3d: Implement d3d12_command_queue_ExecuteCommandLists().
2016-09-29 11:54:44 +02:00
Józef Kucia
b4305f94f0
libs/vkd3d: Fix typo in FIXME() message.
2016-09-29 10:46:42 +02:00
Józef Kucia
31f1d703a9
libs/vkd3d: Add ID3D12Fence interface stub.
2016-09-28 15:24:03 +02:00
Henri Verbeet
5f91e2ded9
libs/vkd3d: Implement d3d12_resource_GetGPUVirtualAddress().
2016-09-28 15:05:13 +02:00
Józef Kucia
623e1a8233
libs/vkd3d: Store VkQueue in d3d12_command_queue.
2016-09-28 09:42:49 +02:00
Józef Kucia
09d24d6934
libs/vkd3d: Implement d3d12_command_list_Reset().
2016-09-28 09:42:49 +02:00
Józef Kucia
335bde6550
libs/vkd3d: Implement d3d12_command_allocator_Reset().
2016-09-28 09:42:49 +02:00
Józef Kucia
00fec8232b
libs/vkd3d: Track command list recording state.
2016-09-28 09:42:49 +02:00
Józef Kucia
f7a54c4653
libs/vkd3d: Rename "VKD3DDEBUG" environment variable to "VKD3D_DEBUG".
2016-09-28 09:42:49 +02:00
Józef Kucia
ef80cdedc3
libs/vkd3d: Make vkd3d debug compatible with MinGW headers.
2016-09-28 09:42:49 +02:00
Józef Kucia
2976d7798d
libs/vkd3d: Implement d3d12_resource_Unmap() for committed buffers.
2016-09-28 09:42:49 +02:00
Józef Kucia
c078e79235
libs/vkd3d: Implement d3d12_resource_Map() for committed buffers.
2016-09-28 09:42:49 +02:00
Józef Kucia
fc1492766e
libs/vkd3d: Implement committed buffer resources.
2016-09-27 12:13:37 +02:00
Józef Kucia
fec147c2cb
libs/vkd3d: Implement committed texture resources.
2016-09-27 12:13:37 +02:00