vulkan: Add a hackish way to handle empty children
authorBenjamin Otte <otte@redhat.com>
Mon, 22 May 2023 02:21:02 +0000 (04:21 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 4 Jun 2023 17:42:01 +0000 (19:42 +0200)
commit1cf6dfab2faf62de3d26e6ec0f1108533cc33545
tree65cb5ba133f11f11d3be28b35e07bff1a3554b42
parent330a8b1cdb1667f88d16436b787328a8f6d294d8
vulkan: Add a hackish way to handle empty children

For blend and crossfade nodes, one of the children may exist and
influence the rendering, while the other does not.

Previously, we would skip the node, which would cause the required
rendering to not happen. We now send a valid texture id for the
invalid offscreen, thereby actually rendering the required parts.

Fixes the blend-invisible-child compare test

Current state for compare tests:
Ok:                 397
Expected Fail:      0
Fail:               26
Unexpected Pass:    0
Skipped:            2
Timeout:            0
gsk/vulkan/gskvulkanrenderpass.c