Commit Graph

2462 Commits

Author SHA1 Message Date
Józef Kucia 3742d2381f tests: Use single shared implementation of wait_queue_idle(). 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 ee3c147f82 tests: Add test for signalling fences on CPU. 2016-10-05 15:56:27 +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 da02d21e8e build: Check for pthreads. 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
Józef Kucia 663f2b4ae1 build: Require MinGW-w64 for crossbuilds.
Since dc7504c7fc we require "-municode"
support from cross compilers. Older MinGW32 doesn't support this option.
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 cd37442fd0 tests: ...but keep regular builds working. 2016-09-30 10:00:11 +02:00
Henri Verbeet dc7504c7fc build: Unicode crossbuilds. 2016-09-30 09:41:12 +02:00
Henri Verbeet adb31f94c2 build: Debug info and warnings for crossbuilds. 2016-09-30 09:41:08 +02:00
Józef Kucia a961ca8f8f build: Add silent mode support for custom rules. 2016-09-29 12:57:01 +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 e2a72ee610 include: Fix typos. 2016-09-29 10:46:42 +02:00
Józef Kucia 4e802d763c tests: Add test for creating ID3D12Fence. 2016-09-28 15:24:03 +02:00
Józef Kucia 31f1d703a9 libs/vkd3d: Add ID3D12Fence interface stub. 2016-09-28 15:24:03 +02:00
Józef Kucia 30a19692af build: Rewrite checks for MinGW using polymorphic shell variables. 2016-09-28 15:24:03 +02:00
Józef Kucia f931d3ad66 build: Move checks for __sync functions to separate macros. 2016-09-28 15:24:03 +02:00
Józef Kucia d8ff91a9f8 build: Reindent check-cflags.m4. 2016-09-28 15:24:03 +02:00
Józef Kucia a42d85ea21 build: Prefer AS_IF macro rather than shell if statement. 2016-09-28 15:24:03 +02:00
Józef Kucia 9eb2d6bafc build: Use "vkd3d" prefix for autoconf variables. 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
Henri Verbeet 8bb1a260d5 configure: Enable silent build rules by default. 2016-09-28 15:03:46 +02:00
Henri Verbeet 10969526a6 configure: WIDL is precious. 2016-09-28 15:03:38 +02:00
Henri Verbeet baa3f71009 tests: Fix crosstests.
The inline wrappers for AsyncIMultiQI in mingw-w64 (mingw-w64-common 3.2.0-2)
are broken and fail to compile. Define WIDL_C_INLINE_WRAPPERS after including
vkd3d_windows.h to avoid them.
2016-09-28 15:00:03 +02:00