Lay out the scene graph in the shading rate map's logical space


When the redirected render target has a shading rate map that defines
its own logical coordinate space, the graphics API interprets viewports
and scissors in that space, and it is typically larger than the physical
size of the texture. The scene graph used the render target's pixel size
for the device rect, viewport rect and projection, which scaled all 2D
content down and clipped it to a corner of the target. This is what
happened with foveated rendering on visionOS 27, where the drawable
textures are allocated at the physical (foveated) resolution while the
rate map's screen size is the full logical size.

Use QRhiShadingRateMap::logicalSize() when it is valid.

Change-Id: Ic59304d191e052226eff43f9d0a9cb38febd77fe
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commitd07dbabe4c5f38879aa709b7bdfb88005bcf0fa0
parent6b66fabcd8e59186193fb716b0b1e8b53552a7cc
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeThu, 15 Oct 2026 16:54:13 +0000