Latest gpu drivers 32.7.x cause some flickering and unstable under vita3k Emulator

Hi _Diablo,

This time got below message, looks like wrong command usage.

$ git submodule --init --recursive
usage: git submodule [--quiet] [--cached]
   or: git submodule [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>]
   or: git submodule [--quiet] status [--cached] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] init [--] [<path>...]
   or: git submodule [--quiet] deinit [-f|--force] (--all| [--] <path>...)
   or: git submodule [--quiet] update [--init] [--remote] [-N|--no-fetch] [-f|--force] [--checkout|--merge|--rebase] [--[no-]recommend-shallow] [--reference <repository>] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] set-branch (--default|--branch <branch>) [--] <path>
   or: git submodule [--quiet] set-url [--] <path> <newurl>
   or: git submodule [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...]
   or: git submodule [--quiet] foreach [--recursive] <command>
   or: git submodule [--quiet] sync [--recursive] [--] [<path>...]
   or: git submodule [--quiet] absorbgitdirs [--] [<path>...]
git submodule update --init --recursive

When copying, I copied from terminal it wrong without update.
It won’t let me edit the last message so there is no confusion. is that command :-)

Hi _Diablo,

Working with update command.
Then run next steps, got this:

$ cmake --preset linux-ninja-clang14
CMake Error: The source directory "/home/nvidia/Vita3K/linux-ninja-clang14" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update && sudo apt-get upgrade .
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 14

I took for granted that step that I mentioned in the first comments :)
Also you are into Vita3K folder?
cd Vita3K
and put cmake --preset linux-ninja-clang14

Hi _Diablo,

Sure, follow you steps and run the command on the Vita3K folder.

nvidia@tegra-ubuntu:~/Vita3K$ cmake --preset linux-ninja-clang14
CMake Error: The source directory "/home/nvidia/Vita3K/linux-ninja-clang14" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
nvidia@tegra-ubuntu:~/Vita3K$ ll
total 148
drwxrwxr-x 14 nvidia nvidia  4096 May  4 03:23 ./
drwxr-xr-x 16 nvidia nvidia  4096 May  4 03:18 ../
drwxrwxr-x  2 nvidia nvidia  4096 May  4 03:23 _building/
-rw-rw-r--  1 nvidia nvidia  6645 May  4 03:23 building.md
-rw-rw-r--  1 nvidia nvidia  2968 May  4 03:23 .clang-format
drwxrwxr-x  2 nvidia nvidia  4096 May  4 03:23 cmake/
-rw-rw-r--  1 nvidia nvidia  8989 May  4 03:23 CMakeLists.txt
-rw-rw-r--  1 nvidia nvidia 11756 May  4 03:23 CMakePresets.json
-rw-rw-r--  1 nvidia nvidia 18092 May  4 03:23 COPYING.txt
drwxrwxr-x  4 nvidia nvidia  4096 May  4 03:23 data/
drwxrwxr-x  2 nvidia nvidia  4096 May  4 03:23 docs/
drwxrwxr-x 37 nvidia nvidia  4096 May  4 03:23 external/
-rw-rw-r--  1 nvidia nvidia   164 May  4 03:23 format.bat
-rwxrwxr-x  1 nvidia nvidia   132 May  4 03:23 format.sh*
-rwxrwxr-x  1 nvidia nvidia    97 May  4 03:23 gen-linux.sh*
-rw-rw-r--  1 nvidia nvidia   119 May  4 03:23 gen-windows.bat
drwxrwxr-x  9 nvidia nvidia  4096 May  4 03:24 .git/
-rw-rw-r--  1 nvidia nvidia   354 May  4 03:23 .gitattributes
drwxrwxr-x  3 nvidia nvidia  4096 May  4 03:23 .github/
-rwxrwxr-x  1 nvidia nvidia   209 May  4 03:23 .gitignore*
-rw-rw-r--  1 nvidia nvidia  3451 May  4 03:23 .gitmodules
drwxrwxr-x  2 nvidia nvidia  4096 May  4 03:23 lang/
drwxrwxr-x  3 nvidia nvidia  4096 May  4 03:23 _readme/
-rwxrwxr-x  1 nvidia nvidia  4856 May  4 03:23 README.md*
drwxrwxr-x  2 nvidia nvidia  4096 May  4 03:23 reversing/
drwxrwxr-x  5 nvidia nvidia  4096 May  4 03:23 tools/
drwxrwxr-x 42 nvidia nvidia  4096 May  4 03:23 vita3k/

it’s strange it’s how not detected --preset correctly
its working for me
But previously you pass with that command fine not sure why now this.
My only suspicion is that will conflict if you tried in cmake version is too old and it probably won’t detect cmake --preset correctly due it’s new feature in cmake 3.19 and higher
Focal cmake by default is 3.16.
You can update cmake by reading the official cmake ppa https://apt.kitware.com/ and rule out that it is because of this?

The other alternative is to compile without cmake preset with the traditional cmake method passing the arguments by hand.
into Vita3K

mkdir build
cdbuild
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_DISCORD_RICH_PRESENCE=OFF 
-DCMAKE_C_COMPILER=clang-14 -DCMAKE_CXX_COMPILER=clang++-14 ..
make -j4 change -j4 if you have more threads on the system.

These are the two ways to compile Vita3K
But I recommend having cmake updated to prevent some optional features in some modern projects like the --preset option due high version of cmake.

Hi _Diablo,

After update cmake to v3.26.3, I can run the command, but got below errors:

configuring boost
CMake Error at /home/nvidia/cmake-3.26.3-linux-aarch64/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost (missing: filesystem system) (found version "1.78.0")
Call Stack (most recent call first):
  /home/nvidia/cmake-3.26.3-linux-aarch64/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /home/nvidia/cmake-3.26.3-linux-aarch64/share/cmake-3.26/Modules/FindBoost.cmake:2377 (find_package_handle_standard_args)
  vita3k/CMakeLists.txt:85 (find_package)
  vita3k/CMakeLists.txt:94 (configure_boost)


-- Configuring incomplete, errors occurred!

I tried both methods are got the same errors.

In the readme doc build in github said this.
If Boost failed to build, you can use the system Boost package (Linux and macOS only).
sudo apt install libboost-filesystem-dev libboost-program-options-dev libboost-system-dev # for Ubuntu/Debian

Hi _Diablo,

Finally, I can build success :)
How to check the issue? I’m in this screen.

I sent you a private message with the steps to follow. The build base is there now, all you have to do is load the file game (and you will have installed the firmware in the initial step of Vita3K)
Select Vulkan render and wait if it affects in orin dev kit it should blink by default when run the game.

Hi,
For information, it is possible to disable VK_EXT_external_memory in Vita3K? Would like to try this case and see if the issue is still present.

For now only can complete disable with this line only enabled for Apple no options here.
switching to " __ LINUX __" disables it but has some instability returning VK fence error Error:vk:::waitFroFences:ErrorDevideLost at wait for fences randomly .
Of all it seems that in orin dev kit the flickering is not reproduced and at least one news is specific to jetson nano TX1 and probably TX2 as well .
Surely all boards with L4T 35.0 are not affected by this o por lo que me ha reportado carol can’t see flickering.

With disabled VK_EXT_external_memory having other issues with other memory mapping using table page.

For some reason doens’t like 4K aligned in this line Vita3K/renderer.cpp at 4280bea5906fdabf90cbb8493a31cf33c96b0b9b · Vita3K/Vita3K · GitHub

This bug is also reproducible on nvidia shield tv or under android and any other TX1 based device.

It’s in Draft but not yet finish

Will be toggling enable/disable optional and see when it’s finish option.

Hi,

We are checking this on AGX Orin/Jetpack 5.1.1. Once it is resolved, the next Jetpack 5.1.2 shall contain the fix.

UPDATE We have this fixed in Jetpack 5.1.2. Please upgrade and give it a try.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.