Trouble with optimal tiling for Vulkan/OpenGL interop

Andy Russell <[email protected]> Thu, 18 Jun 2026 23:56:03 -0400
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <CACpA9q_xh7z=BYeqxt55nkX8y5kNzLk6EohCdyRJviGevH=Ukw@mail.gmail.com>
--000000000000694e080654934660
Content-Type: text/plain; charset="UTF-8"

Hello,

I am building an experimental application that relies on Vulkan/OpenGL
interop. I am attempting to create a Vulkan texture, import it to OpenGL,
render to it via GL, and then blit the Vulkan texture to a Wayland surface.
My code is working on Intel and Nvidia machines, but I'm having trouble
getting AMD (RADV) to work.

Code: https://github.com/euclio/vulkan-opengl-demo/tree/memory-obj

The code works as expected on AMD and Intel graphics if I use LINEAR tiling
(though OpenGL errors when calling Texparameteri on Nvidia). If I switch to
OPTIMAL tiling, it works on Intel and Nvidia graphics, but AMD shows a
garbled screen. It looks like it's related to the tiling, since the colors
are still somewhat ordered and arranged in regular rectangular shapes, but
it doesn't look anything like the rainbow triangle that is supposed to
appear.

I would appreciate any debugging assistance, or perhaps I'm hitting a
problem with the driver, since it's an unusual setup. Unfortunately I'm not
able to get renderdoc to run the program to debug.

GPU: AMD Radeon RX 9070 XT (RADV GFX1201)

--000000000000694e080654934660
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,</div><div><br></div><div>I am building an expe=
rimental application that relies on Vulkan/OpenGL interop. I am attempting =
to create a Vulkan texture, import it to OpenGL, render to it via GL, and t=
hen blit the Vulkan texture to a Wayland surface. My code is working on Int=
el and Nvidia machines, but I&#39;m having trouble getting AMD=C2=A0(RADV) =
to work.</div><div><br></div><div>Code: <a href=3D"https://github.com/eucli=
o/vulkan-opengl-demo/tree/memory-obj">https://github.com/euclio/vulkan-open=
gl-demo/tree/memory-obj</a></div><div><br></div><div>The code works as expe=
cted on AMD and Intel graphics if I use LINEAR tiling (though OpenGL errors=
 when calling Texparameteri on Nvidia). If I switch to OPTIMAL tiling, it w=
orks on Intel and Nvidia graphics, but AMD shows a garbled screen. It looks=
 like it&#39;s related to the tiling, since the colors are still somewhat o=
rdered and arranged in regular rectangular shapes, but it doesn&#39;t look =
anything like the rainbow triangle that is supposed to appear.</div><div><b=
r></div><div>I would appreciate any debugging assistance, or perhaps I&#39;=
m hitting a problem with the driver,=C2=A0since it&#39;s an unusual=C2=A0se=
tup. Unfortunately I&#39;m not able to get renderdoc to run the program to =
debug.</div><div><br></div><div>GPU:=C2=A0AMD Radeon RX 9070 XT (RADV GFX12=
01)</div></div>

--000000000000694e080654934660--