Commit 98344cf
committed
Vulkan: Fix HDR pipeline blend factors and quad vertex buffer handling
Set explicit blend factors (src=ONE, dst=ONE_MINUS_SRC_ALPHA) on
the HDR pipeline blend attachment for correct alpha compositing.
Refactor vulkan_run_hdr_pipeline to check the return value of
vulkan_buffer_chain_alloc before writing vertices, replace the
VULKAN_WRITE_QUAD_VBO macro with explicit vertex definitions for
clarity, and move vkCmdBindVertexBuffers/vkCmdDraw inside the
allocation success block to avoid drawing with invalid buffers.1 parent bed2dc3 commit 98344cf
1 file changed
Lines changed: 29 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2668 | 2668 | | |
2669 | 2669 | | |
2670 | 2670 | | |
| 2671 | + | |
| 2672 | + | |
2671 | 2673 | | |
2672 | 2674 | | |
2673 | 2675 | | |
| |||
4695 | 4697 | | |
4696 | 4698 | | |
4697 | 4699 | | |
4698 | | - | |
4699 | | - | |
| 4700 | + | |
4700 | 4701 | | |
4701 | | - | |
4702 | | - | |
4703 | | - | |
4704 | | - | |
4705 | | - | |
4706 | | - | |
4707 | | - | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
4708 | 4724 | | |
4709 | | - | |
| 4725 | + | |
| 4726 | + | |
| 4727 | + | |
| 4728 | + | |
4710 | 4729 | | |
4711 | | - | |
4712 | | - | |
4713 | | - | |
4714 | 4730 | | |
4715 | 4731 | | |
4716 | | - | |
4717 | | - | |
4718 | 4732 | | |
4719 | 4733 | | |
4720 | 4734 | | |
| |||
0 commit comments