How do I force Wayland on a SDL game on steam on an optimus laptop?

Hello. So my laptop uses KDE + intel haswell + nvidia 960m.

Now that GDM support was added to the nvidia driver so it should be able to run Wayland games on it, I want to try it.

So the command to run a sdl game on wayland is


And the way to run a game on the nvidia card on an optimus machine on steam is with

prime-run %command%

So how do I run a sdl game using wayland on the nvidia card?

I tried

SDL_VIDEODRIVER=wayland prime-run %command%

and it does run the game on wayland, but it still runs it on the intel card and not the nvidia one

So this really have no answer. Optimus + wayland just doesnt exist