vulkan: Make scissoring an explicit operation
authorBenjamin Otte <otte@redhat.com>
Fri, 19 May 2023 01:08:43 +0000 (03:08 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 4 Jun 2023 17:42:01 +0000 (19:42 +0200)
commit7fd94c1828fd6ff26d597f5916399ff27e61c98a
tree3290a1a34628233e410faeba64aff6ba5c122f2e
parentdd4c1167b2cdf1b0ab655d5bc126b727f4397ccb
vulkan: Make scissoring an explicit operation

The idea is to use it for clip nodes when they are integer-aligned.

To do that, we need to track the scissor rect in the parse state, so we
do that, too.

Also move the viewport offset out of the projection matrix, as it is
part of the transform between clip and scissor, so it needs to live in
the offset.
gsk/vulkan/gskvulkanrenderpass.c