RHI: compute viewport based on rendertarget size


So that behavior is consistent with the OpenGL renderer.
Computed viewport size is QViewport::normalizedRect * current render target
size. If current render target is the window, then its size is the same as
the surface size.

Change-Id: Icd8f8e18d8959ac045538b493fef690e3dd7221c
Pick-to: 6.0
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commit4794c7543726f2a460c9d16b0ae0154da39efd7c
parent0363d5d84e08ad66826856787e8af57d93a56e6b
authorPaul Lemire <paul.lemire@kdab.com>
committerPaul Lemire <paul.lemire@kdab.com>
commit timeWed, 16 Dec 2020 14:13:23 +0100