I solved it.
I followed this guide: Getting rid of llvmpipe. Installing open source drivers correctly
Then I entered the command
glxinfo -B | grep "OpenGL renderer"
gives me this result
OpenGL renderer string: KABINI (radeonsi, , ACO, DRM 2.50, 6.8.0-55-generic)
Than I removed the legacy drivers because my Kabini APU (GCN 2.0) is supposed to use radeonsi or amdgpu for video acceleration, not r600.
sudo apt purge xserver-xorg-video-radeon
sudo apt autoremove
and force the use of radeonsi at the system level by creating a configuration file for VA-API
sudo nano /etc/environment
by adding this line: LIBVA_DRIVER_NAME=radeonsi
I did Save (Ctrl+O) and Exit (Ctrl+X).
then i restarted the graphics systems
sudo systemctl restart display-manager
and rebooted the system.
I did a final check with the command
vainfo | grep -E "Driver version|VAProfile"
And the result was this
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'radeonsi'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
vainfo: Driver version: Mesa Gallium driver 25.0.2 - kisak-mesa PPA for KABINI (radeonsi, , ACO, DRM 2.50, 6.8.0-55-generic)
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
Now the configuration is correct and hardware acceleration is active.
To run a Windows game with Wine instead requires additional steps.
Check Vulkan drivers and drivers in the kernel.
I then forced the amdgpu driver into the kernel:
Modified /etc/default/grub to disable radeon and enable amdgpu, then updated GRUB and rebooted.
Configured Vulkan to use RADV:
And installed the Wine Dependency Hell Solver script.
Now the Windows game works as well.
After all these configurations now this is my output
OpenGL renderer string: AMD Radeon R2 Graphics (radeonsi, kabini, ACO, DRM 3.57, 6.8.0-56-generic)
Now everything works well.