Commit Graph

6027 Commits

Author SHA1 Message Date
Henri Verbeet
e467b02b29 demos: Introduce demo_window_set_expose_func(). 2016-11-03 12:55:26 +01:00
Henri Verbeet
169810d20d demos/triangle: Destroy the window when escape is pressed. 2016-11-03 12:55:00 +01:00
Henri Verbeet
f9805396d9 build: Use pkg-config to check for libxcb. 2016-11-03 12:54:10 +01:00
Henri Verbeet
f17742401a demos/triangle: Move includes to the appropriate headers. 2016-11-03 12:53:44 +01:00
Henri Verbeet
b56b2f8687 build: Only warn about missing widl.
Users of the library shouldn't need widl to build it.
2016-10-28 13:15:47 +02:00
Henri Verbeet
f0cdf58f8d build: Don't clean widl generated headers.
These shouldn't get removed by "make clean". Maintainer cleans will still get
rid of them.
2016-10-28 13:09:47 +02:00
Henri Verbeet
4142c477ef build: Add some standard files. 2016-10-28 12:34:12 +02:00
Józef Kucia
af9ef75919 build: Fix check for glslangValidator. 2016-10-28 11:50:22 +02:00
Józef Kucia
3b748bf5fb tests: Add basic test for texture resource barriers. 2016-10-25 13:23:18 +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
a4c36a87db demos: Flush XCB connection after creating window.
This fixes the "BadDrawable (invalid Pixmap or Window parameter)" error
thrown by vkGetPhysicalDeviceSurfaceCapabilitiesKHR() on Nvidia drivers.
2016-10-24 15:28:08 +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
Henri Verbeet
f34b9f9347 include: Add the IDXGIFactory2 interface. 2016-10-24 13:57:04 +02:00
Henri Verbeet
110309b623 include: Add the IDXGISwapChain3 interface.
For cross-compilation of demos. Ideally we'd just depend on the MinGW-w64
headers for these, but we can't depend on those being new enough to include
these interfaces.
2016-10-24 13:57:04 +02:00
Henri Verbeet
a8f7602b14 include: Use hexadecimal values in the DXGI_FORMAT enum.
Since that's how those are typically printed.
2016-10-24 13:57:04 +02:00
Henri Verbeet
c593e1a8ea build: Generate cross_implibs EXTRA_DIST from cross_implibs. 2016-10-24 13:57:04 +02:00
Henri Verbeet
0865bb6392 Add crosslibs .a to .gitignore. 2016-10-24 13:57:04 +02:00
Józef Kucia
e987e02706 tests: Add test for bundle state inheritance. 2016-10-24 13:20:09 +02:00
Józef Kucia
53db1da082 tests: Get rid of D3D12 debug layer warning. 2016-10-24 13:20:09 +02:00
Józef Kucia
f35b311aa1 tests: Introduce "draw_test_context" for simple drawing tests. 2016-10-24 13:20:09 +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
81164d43f7 tests: Use stdbool. 2016-10-24 13:20:09 +02:00
Józef Kucia
ed50a4e7f5 include: Assert that "count * size" does not overflow in vkd3d_calloc(). 2016-10-24 13:20:09 +02:00
Józef Kucia
bc1c2bcadf tests: Separate statements by semicolon instead of comma. 2016-10-20 16:54:45 +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
d3ad189be4 tests: Add test for resetting command list when it is in use. 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
34f6abc81d tests: Add test for mapping CPU inaccessible buffers. 2016-10-19 13:10:12 +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