Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2018 18:46:58 +0200
From:      Stefan Rumetshofer <sterum77@gmail.com>
To:        freebsd-x11@freebsd.org
Subject:   Testing the linux compatibility with the amdgpu driver and linux-doom3 fails
Message-ID:  <255786377.P3pStmDMii@saturn.lan>

next in thread | raw e-mail | index | archive | help
Firts of all i hope this is not the wrong mailing list.

I was trying to run linux-doom3 from the ports collection with my graphics 
hardware but this fails with an error realted to OpenGL or so. Also other 
linux games are failing like Unreal or RTCW. It seems that there is a general 
Problem with the amd Graphics driver and the linux compatibility. I also teted 
the game wit the intel driver on my SandyBridge GPU with no error.

My graphics hardware is an AMD Radeon RX560. OS is a FreeBSD 11.2-RELEASE with 
drm-next-kmod and xf86-video-amdgpu. The kernel module is loaded with 
kld_list="amdgpu" in the rc.conf and the X11 driver is loaded with 'Driver 
"amdgpu"' in the Device Section of the xorg.conf. Xorg works fine with this 
configuration.

Following linux related packages are installed:
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

When running linux-doom3 i get the following output:
% 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
execing 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 1280x1024
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()



If more information is needed i can deliver it.


Stefan.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?255786377.P3pStmDMii>