5522 Commits
Author SHA1 Message Date
ee90ac192f Merge #3393
3393: [dx12] Dota-related fixes and improvements r=msiglreith a=kvark

Fixes #2661
Fixes #2668
Fixes #2140
Fixes the sampler part of #2652
Fixes #1949 (I think? it enables dynamic storage buffers)
PR checklist:
- [ ] `make` succeeds (on *nix)
- [ ] `make reftests` succeeds
- [ ] tested examples with the following backends:


Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-10-06 03:14:32 +00:00
Dzmitry Malyshau 3ae13d6a76 [dx12] wait for queues before dropping the device 2020-10-05 19:34:01 -04:00
bors[bot]andDzmitry Malyshau ed75b72ab5 Merge #3399
3399: [dx12] map color blend factors to alpha r=msiglreith a=kvark

Sibling of  #3398 for master

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-10-05 15:58:25 +00:00
Dzmitry Malyshau 32614a32b7 [dx12] map color blend factors to alpha 2020-10-05 11:57:54 -04:00
Dzmitry Malyshau 3fa5025851 [dx12] fully virtualize and deduplicate sampler allocation 2020-10-05 01:10:03 -04:00
Dzmitry Malyshau 5ef466e018 [dx12] fix image creation with compressed formats 2020-10-05 01:09:02 -04:00
Dzmitry Malyshau 0d92bfa1cd [dx12] reimplement command buffer lifecycle 2020-10-05 01:09:01 -04:00
Dzmitry Malyshau 6a2d2cb07b [dx12] be more flexible in handling sampler creation 2020-10-05 01:06:10 -04:00
Dzmitry Malyshau d582632d65 [dx12] switch to parking_lot, refactor command pool a bit 2020-10-05 01:06:10 -04:00
bors[bot]andDzmitry Malyshau 876de168e9 Merge #3396
3396: [dx12] command buffer markers, names for renderpasses and descriptorsets r=msiglreith a=kvark

Fixes DX12 part of #3395
PR checklist:
- [ ] `make` succeeds (on *nix)
- [ ] `make reftests` succeeds
- [x] tested examples with the following backends: dx12

![Dx12markers](https://user-images.githubusercontent.com/107301/95007794-c375f480-05e1-11eb-9f77-1780dee0b922.PNG)



Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-10-04 10:18:35 +00:00
Dzmitry Malyshau a23c052528 [dx12] command buffer markers, names for renderpasses and descriptor sets 2020-10-04 01:29:31 -04:00
bors[bot]andVickenty Fesunov 5c7f1ec2d7 Merge #3392
3392: Remove unused dependencies r=kvark a=vickenty

Even when built with x11 and xcb features enabled on Linux,
Vulkan backend does not use anything from x11 or xcb crates.

Fixes #issue
PR checklist:
- [x] `make` succeeds (on *nix)
- [ ] `make reftests` succeeds
- [x] tested examples with the following backends: vulkan


Co-authored-by: Vickenty Fesunov <kent@setattr.net>
2020-10-02 14:08:37 +00:00
Vickenty Fesunov a498b47500 Remove x11 and xcb features
Build xlib and xcb support unconditionally, since
it does not require any additional dependencies.
2020-10-02 11:32:43 +02:00
Vickenty Fesunov 68ac26a0ab Remove unused dependencies
Even when built with x11 and xcb features enabled on Linux,
Vulkan backend does not use anything from x11 or xcb crates.
2020-10-01 23:30:00 +02:00
bors[bot]andConnor Fitzgerald ae9fbd0fa8 Merge #3391
3391: [vk] Properly enable VK_KHR_maintenance3 r=kvark a=cwfitzgerald

Ports #3390 to master.

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2020-09-30 22:44:24 +00:00
Connor Fitzgerald 8ed6e8820a [vk] Properly enable VK_KHR_maintenance3 2020-09-30 18:05:01 -04:00
bors[bot]andDzmitry Malyshau c3df31f6f4 Merge #3387
3387: Metal optimizations and fixes r=grovesNL a=kvark

Fixes a bunch of things, except performance on Dota :(
Fixes #3381


Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-09-29 02:58:30 +00:00
Dzmitry Malyshau 7f6c6a04e7 [mtl] Redesign the way descriptor sets are bound.
We used to iterate the individual descriptor layout and checking
for their contained data, multiple times per stage. Instead, we
are now iterating the descriptor pool sub-ranges directly.
Data-wise, this required adding the shader stage mask to the pool data,
and filling it out in allocate_set for immutable samplers.
2020-09-28 22:56:09 -04:00
Dzmitry Malyshau 7b0caaefa7 [mtl] fix encoder freeing on submit 2020-09-28 22:56:09 -04:00
Dzmitry Malyshau 22b2bf6a9b [mtl] debug labels for pipelines 2020-09-28 22:56:09 -04:00
Dzmitry Malyshau 2ff796d956 [mtl] fix attachment ops flags 2020-09-28 22:56:09 -04:00
Dzmitry Malyshau d7ad7ff7fa [mtl] refactor includes 2020-09-28 22:56:09 -04:00
Dzmitry Malyshau ee17453726 [mtl] refactor subpass attachment infos 2020-09-28 22:56:06 -04:00
Dzmitry Malyshau f0051da612 [mtl] fix redundant scissor changes 2020-09-24 02:11:13 -04:00
Dzmitry Malyshau 0d581a6c33 [mtl] fix redundant depth-stencil changes, add TargetState struct 2020-09-24 00:37:20 -04:00