AMD Radeon und linux compatibility

sterum

Well-Known Member
Hallo,

Ich habe hier zum Testen eine neuer AMD Radeon RX560 Grafikkarte, welche unter X auch funktioniert.
Nun wollte ich damit mal games/linux-doom3 testen, jedoch schlägt das mit einem Segmentation Fault fehl.
Code:
% linux-doom3
DOOM 1.3.1.1304 linux-x86 Jan 16 2007 21:58:02
found interface eth0 - 192.168.0.10/255.255.255.0
found interface lo0 - loopback
------ Initializing File System ------
Loaded pk4 /usr/local/lib/linux-doom3/base/game01.pk4 with checksum 0x51c6981f
Loaded pk4 /usr/local/lib/linux-doom3/base/pak000.pk4 with checksum 0x28d208f1
Loaded pk4 /usr/local/lib/linux-doom3/base/pak001.pk4 with checksum 0x40244be0
Loaded pk4 /usr/local/lib/linux-doom3/base/pak002.pk4 with checksum 0xc51ecdcd
Loaded pk4 /usr/local/lib/linux-doom3/base/pak003.pk4 with checksum 0xcd79d028
Loaded pk4 /usr/local/lib/linux-doom3/base/pak004.pk4 with checksum 0x765e4f8b
Loaded pk4 /usr/local/lib/linux-doom3/base/pak005.pk4 with checksum 0x8ffc3621
Loaded pk4 /usr/local/lib/linux-doom3/base/pak006.pk4 with checksum 0x95b65ab
Loaded pk4 /usr/local/lib/linux-doom3/base/pak007.pk4 with checksum 0x666bdb3c
Loaded pk4 /usr/local/lib/linux-doom3/base/pak008.pk4 with checksum 0x23ae5993
Current search path:
/home/stefan/.doom3/base
/usr/local/lib/linux-doom3/base
/usr/local/lib/linux-doom3/base/pak008.pk4 (3 files)
/usr/local/lib/linux-doom3/base/pak007.pk4 (38 files)
/usr/local/lib/linux-doom3/base/pak006.pk4 (48 files)
/usr/local/lib/linux-doom3/base/pak005.pk4 (63 files)
/usr/local/lib/linux-doom3/base/pak004.pk4 (5137 files)
/usr/local/lib/linux-doom3/base/pak003.pk4 (4676 files)
/usr/local/lib/linux-doom3/base/pak002.pk4 (6120 files)
/usr/local/lib/linux-doom3/base/pak001.pk4 (8972 files)
/usr/local/lib/linux-doom3/base/pak000.pk4 (2698 files)
/usr/local/lib/linux-doom3/base/game01.pk4 (2 files)
game DLL: 0x0 in pak: 0x0
Addon pk4s:
file system initialized.
--------------------------------------
----- Initializing Decls -----
------------------------------
------- Initializing renderSystem --------
using ARB renderSystem
renderSystem initialized.
--------------------------------------
5206 strings read from strings/english.lang
Couldn't open journal files
execing editor.cfg
execing default.cfg
couldn't exec DoomConfig.cfg
couldn't exec autoexec.cfg
5206 strings read from strings/english.lang
----- Initializing Sound System ------
sound system initialized.
--------------------------------------
----- R_InitOpenGL -----
Setup X display connection
dlopen(libGL.so.1)
Initializing OpenGL display
Using XFree86-VidModeExtension Version 2.2
DGA DirectVideo Mouse (Version 2.0) initialized
Free86-VidModeExtension Activated at 640x480
Using 8/8/8 Color bits, 8 Alpha bits, 24 depth, 8 stencil display.
GL_RENDERER: Gallium 0.4 on AMD POLARIS11 (DRM 3.8.0 / 2.6.32, LLVM 3.9.1)
idCommon::VPrintf: truncated to 4094 characters
GL_EXTENSIONS: GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_NV_fog_distance GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_depth_bounds_test GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_rgtc GL_EXT_texture_mirror_clamp GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_ATI_texture_mirror_once GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_AMD_performance_monitor GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_stencil_export GL_ARB_shader_texture_lod GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_ATI_meminfo GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_texture_barrier GL_ARB_get_program_bin

------- Input Initialization -------
XKB extension: compile time 0x1:0x0, runtime 0x1:0x0: OK
XKB extension present on server ( 0x1:0x0 )
------------------------------------
dlopen(libasound.so.2)
dlopen(libasound.so.2) failed: libasound.so.2: cannot open shared object file: No such file or directory
Alsa is not available
----------- Alsa Shutdown ------------
--------------------------------------
------ OSS Sound Initialization ------
opened sound device '/dev/dsp'
ioctl SNDCTL_SYSINFO failed: Invalid argument
this ioctl is only available in OSS/Linux implementation. If you run OSS/Free, don't bother./dev/dsp - bit rate: 16, channels: 2, frequency: 44100
allocated a mix buffer of 16384 bytes
--------------------------------------
...using GL_ARB_multitexture
...using GL_ARB_texture_env_combine
...using GL_ARB_texture_cube_map
...using GL_ARB_texture_env_dot3
...using GL_ARB_texture_env_add
...using GL_ARB_texture_non_power_of_two
...using GL_ARB_texture_compression
X..GL_EXT_texture_compression_s3tc not found
...using GL_EXT_texture_filter_anisotropic
   maxTextureAnisotropy: 16.000000
...using GL_1.4_texture_lod_bias
X..GL_EXT_shared_texture_palette not found
...using GL_EXT_texture3D
...using GL_EXT_stencil_wrap
X..GL_NV_register_combiners not found
...using GL_EXT_stencil_two_side
...using GL_ATI_fragment_shader
...using GL_ARB_vertex_buffer_object
...using GL_ARB_vertex_program
...using GL_ARB_fragment_program
...using EXT_depth_bounds_test
---------- R_NV20_Init ----------
Not available.
----------- R200_Init -----------
GL_NUM_FRAGMENT_REGISTERS_ATI: 6
GL_NUM_FRAGMENT_CONSTANTS_ATI: 8
GL_NUM_PASSES_ATI: 2
GL_NUM_INSTRUCTIONS_PER_PASS_ATI: 8
GL_NUM_INSTRUCTIONS_TOTAL_ATI: 16
GL_COLOR_ALPHA_PAIRING_ATI: 1
GL_NUM_LOOPBACK_COMPONENTS_ATI: 3
GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI: 3
FPROG_FAST_PATH
---------------------
---------- R_ARB2_Init ----------
Available.
---------------------------------
----- R_ReloadARBPrograms -----
glprogs/test.vfp
glprogs/test.vfp
glprogs/interaction.vfp
glprogs/interaction.vfp
glprogs/bumpyEnvironment.vfp
glprogs/bumpyEnvironment.vfp
glprogs/ambientLight.vfp
glprogs/ambientLight.vfp
glprogs/shadow.vp
glprogs/R200_interaction.vp
glprogs/nv20_bumpAndLight.vp
glprogs/nv20_diffuseColor.vp
glprogs/nv20_specularColor.vp
glprogs/nv20_diffuseAndSpecularColor.vp
glprogs/environment.vfp
glprogs/environment.vfp
glprogs/arbVP_glasswarp.txt: File not found
glprogs/arbFP_glasswarp.txt: File not found
-------------------------------
using ARB_vertex_buffer_object memory
using ARB2 renderSystem
signal caught: Segmentation fault
si_code 1
Trying to exit gracefully..
Shutting down sound hardware
------ OSS Sound Shutdown ------
close sound device
--------------------------------
idRenderSystem::Shutdown()

Die Linux Version von Unreal macht ähnliche Probleme:

Code:
% unreal.sh
Processors / Cores 8
Forcing CPU affinity disabled.
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40

System ist ein FreeBSD 11.2-RELEASE mit installiertem und geladenem drm-next-kmod. xf86-video-amdgpu ist ebenso installiert.
Von den Linux ports sind folgende installiert:
Code:
linux-c7-dri-17.0.1                =   up-to-date with remote
linux-c7-elfutils-libelf-0.168     =   up-to-date with remote
linux-c7-expat-2.1.0_2             =   up-to-date with remote
linux-c7-fontconfig-2.10.95_3      =   up-to-date with remote
linux-c7-glx-utils-8.2.0_4         =   up-to-date with remote
linux-c7-libpciaccess-0.13.4_3     =   up-to-date with remote
linux-c7-xorg-libs-7.7_5           =   up-to-date with remote
linux-doom3-1.3.1.1304,1           =   up-to-date with remote
linux_base-c7-7.4.1708_6           =   up-to-date with remote
Die Informationen im KDE Infozentrum zur Grafik sehen auch gut aus. Hiervon habe ich aber nur Screenshots.

Jetzt Frage ich mich ob OpenGL Linux Anwendungen mit dem Linuxulator mit dieser Grafikhardware generell nicht laufen oder ob man da noch irgendwelche Tricks benötigt.
Mit meiner alten NVIDIA 560GTX und dem NVIDIA Treiber läuft das Spiel problemlos.
 

Anhänge

  • Screenshot_OpenGL.png
    Screenshot_OpenGL.png
    146,6 KB · Aufrufe: 195
  • Screenshot_X-Server.png
    Screenshot_X-Server.png
    186,3 KB · Aufrufe: 199
Ich hab immer mal wieder versucht, linux-gameports zum Laufen zu bewegen. Keine Chance, war mir irgendwann auch zu blöd. nvidia hier btw.
 
Wie oben bereits angedeutet: Mit Nvidia laufen sie alle, zumindest die die ich getestet habe. Mit AMD und mesa gibt es Probleme.
 
Da hattest du wesentlich mehr Erfolg als ich. :)
Ich hab mich einfach nur noch geärgert gegen Ende, weil einfach keines funktionierte.
 
Das ist wahrscheinlich das alte Problem, dass FreeBSD/amd64 mit den freien Treibern keine 32Bit Anwendungen beschleunigen kann.

Ist das so? Ich meine, ich hätte in der Vergangenheit linux-doom3 mit einer Radeon alten 4850 zum Laufen gebracht. Vielleicht fehlen einige Extensions für Texturkompression. Installiere mal s2tc (pkg install s2tc) und starte X neu.
 
Ich hatte früher wie gesagt linux-doom3 zum Laufen bekommen, aber ETQW nicht. Mit dem freien Zeugs ist man einfach limitiert. Mit Nividia ist man auf der sicheren Seite, wenn man mit FreeBSD zocken will.
 
Die installation von s2tc hat zu keinem Erfolg geführt.

Wenn es nur um Doom 3 geht nehme einfach dhewm3
Nein, es geht mir nicht nur um Doom3. Das hab ich nur als Beispiel genommen weil es noch auf der Festplatte herumliegt. Da wären noch Unreal, RTCW, Quake4, und vor allem ein paar neuer Spiele von GOG.com.

Ich hab jetzt noch die integrierte GPU von der SandyBridge CPU mit dem intel Treiber getestet. Damit läuft linux-doom3 auch, wenn auch nicht sonderlich schnell.

Vielleicht mach ich ja auch einen PR auf, oder schick eine Mail an freebsd-x11 oder freebsd-emulation...

Leider funktioniert der letzte NVIDIA Treiber auch nicht mehr mit dem Linuxulator und 64Bit Unterstützung gibt es dafür auch nicht, sonst wäre die Entscheidung zugunsten einer neuen NVIDIA einfacher.
 
Leider funktioniert der letzte NVIDIA Treiber auch nicht mehr mit dem Linuxulator und 64Bit Unterstützung gibt es dafür auch nicht, sonst wäre die Entscheidung zugunsten einer neuen NVIDIA einfacher.

Ist das wirklich so? Kannst Du das bestätigen? Also ich hatte diesbezüglich das Problem schon hier und im internationalen Forum beschrieben und jemand hatte mir eine Lösung geboten. Mir war aufgefallen, dass Linux-Spiele nach der installation von linux-c6-png nicht mehr liefen. Danach musste ich die Lösung vorgeschlagene Lösung nochmals anwenden (etwas mit rm und anschließend ln -s oder so ähnlich). Aktuell verwende ich deshalb noch nvidia-driver-384.90 und FreeBSD 11.1.

https://forums.freebsd.org/threads/...for-about-a-year-now.65586/page-2#post-392591
 
Zurück
Oben