vkCmdCopyImage broadcasts subsample 0 of MSAA src into all subsamples of dst on RADV
As the title says.
When using vkCmdCopyImage, AFAIK there is no way to select which subsamples to copy.
For example if using MSAA 4x, instead of copying subsamples [0; 4) from src into dst, it copies subsample 0 from src into dst's [0; 4)
This repros in RenderDoc. I'm attaching a capture, go to EID 181 and check the subsamples like in the attached picture.
Works as intended in AMDVLK, broken with RADV.
System information
System: Host: matias-ubuntu Kernel: 5.4.0-42-generic x86_64
bits: 64 gcc: 7.5.0
Desktop: Xfce 4.12.3 (Gtk 2.24.31) dm: lightdm
Distro: Ubuntu 18.04.5 LTS
CPU: Quad core Intel Core i7-7700 (-MT-MCP-)
arch: Skylake rev.9 cache: 8192 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 28800
clock speeds: min/max: 800/4200 MHz 1: 800 MHz 2: 800 MHz
3: 800 MHz 4: 800 MHz 5: 800 MHz 6: 800 MHz 7: 800 MHz 8: 800 MHz
Graphics: Card: Advanced Micro Devices [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X]
bus-ID: 01:00.0 chip-ID: 1002:67ff
Display Server: x11 (X.Org 1.20.8 )
drivers: amdgpu (unloaded: radeon,intel)
Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz
OpenGL: renderer: Radeon RX 560 Series (POLARIS11, DRM 3.35.0, 5.4.0-42-generic, LLVM 10.0.1)
version: 4.6 Mesa 20.1.3 (git-663fa46287) Direct Render: Yes
- OS: Xubuntu 18.04.5 LTS
- GPU: 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] [1002:67ff] (rev cf)
- Kernel version: 5.4.0-42-generic
- Mesa version: OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.1.3 (git-663fa462)
- Desktop manager and compositor: xfce, no compositor
Regression
Unknown