LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware-14.0 ATI driver question (https://www.linuxquestions.org/questions/slackware-14/slackware-14-0-ati-driver-question-4175429955/)

business_kid 10-01-2012 04:47 PM

Slackware-14.0 ATI driver question
 
Just a quick one here. I see Slackware-14.0 ships llvm. Is mesa compiled --with-llvm for older crappier half assed 2007 ATI cards like my RS600 (aka RS690, aka X1250 series, aka ???) which gains an improvement by getting llvm to replace it's vertex shader? Do I have to do anything special to set it up?

amani 10-01-2012 07:10 PM

In June, llvm was not supporting indirect addressing

http://phoronix.com/forums/showthrea...g-A-Bit-Better

ReaperX7 10-01-2012 08:18 PM

The new Mesa package is compiled with these following flags enabled:

Code:

./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --docdir=/usr/doc/mesa-$VERSION \
  --with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
  --with-dri-drivers="$DRI_DRIVERS" \
  --with-gallium-drivers=nouveau,swrast,r300,r600 \
  --enable-gallium-llvm \
  --build=$ARCH-slackware-linux

So yes, you do have Gallium3D LLVM/CLANG support.

kernel-P4N1C 10-02-2012 08:50 AM

Ok i know it may not be related...

I have an ati radeon hd 6400 with two monitors and used the amd proprietary drivers with no issues... just finished the update and x didn't want to load
fglrx now says no such device attached.

I've notice the "radeon" module loads every time i started x.... anyways, last night i was too tired to deal with it so in order to load x i removed the fglrx driver and run xconfig.

i downloaded the new drivers and installed them... but it run with erros and when checked the logs apparently the problem is related to the installer placing the module...


please advice

414N 10-02-2012 08:59 AM

Of what update are you talking about? The one from 13.37 to 14.0? In this case, you'll need to rerun the amd installer as it needs to recompile the kernel module for the kernel found on 14.0. Make sure your kernel sources are there and properly configured (you should need to run "make mrproper" inside the kernel source directory).
Also note that when you install fglrx it overwrites libGL.so so, if you uninstall it, you'll need to reinstall the mesa package to make sure you have a libGL.so on your system.

business_kid 10-02-2012 09:34 AM

To deal with the various replies.

@Amani: That was R600g support - I have the older slower R300 for the stuff they're slightly ashamed they made.

@ReaperX7: Spot on - that's what I needed. Thanks very much.

@kernel-P4NIC: It's better to start your own thread on a different subject than hijack someone else's.

414N 10-02-2012 09:45 AM

Quote:

Originally Posted by business_kid (Post 4794964)
@Amani: That was R600g support - I have the older slower R300 for the stuff they're slightly ashamed they made.

I too have an R300 (ATI X800 XT) card but I'm quite sure that LLVM is used only on R600+ hardware, so I guess it won't matter on your card that mesa is built with LLVM support.

business_kid 10-02-2012 11:10 AM

You could be right. I haven't tested that, or haven't even figured how to test it.

I was told by developers on phoronix to set up with llvm as my card had basically no vertex shader. That was 15 - 18 months ago. It affects 2D performance, I think - certainly not 2D & 3D. I did get something going, but the results were inconclusive.

414N 10-02-2012 11:50 AM

Maybe they were referring to llvmpipe, a software-only driver which leverages LLVM for recompiling shaders stuff.
You can try it (don't know if Slackware 14.0 includes it or not) defining
Code:

LIBGL_ALWAYS_SOFTWARE=1
in the environment. glxinfo should report something like this:
Code:

GL_VERSION: 2.1 Mesa 9.1-devel
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_multitexture 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_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_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc 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_EXT_stencil_two_side GL_EXT_texture_cube_map 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_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_NV_primitive_restart 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_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_dxt1 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_compression_latc GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_ARB_copy_buffer 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_separate_shader_objects GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_draw_buffers_blend GL_ARB_ES2_compatibility 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_sampler_objects GL_ARB_shader_texture_lod GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_ARB_robustness GL_ARB_texture_storage GL_ARB_invalidate_subdata
GL_RENDERER: Gallium 0.4 on llvmpipe (LLVM 2.9, 128 bits)
GL_VENDOR: VMware, Inc.
GLU_VERSION: 1.3
GLU_EXTENSIONS: GLU_EXT_nurbs_tessellator GLU_EXT_object_space_tess
GLUT_API_VERSION: 4
GLUT_XLIB_IMPLEMENTATION: 13


kernel-P4N1C 10-02-2012 10:03 PM

ok i finally made mine to work.... however, the dumb question remains.

radeon (opensource) drivers are included in the xorg but i can't have desktop effects with radeon module loaded... apparently i need radeonhd (different set)

how can i verify if these are also included?

414N 10-03-2012 02:07 AM

Quote:

Originally Posted by kernel-P4N1C (Post 4795576)
ok i finally made mine to work.... however, the dumb question remains.

radeon (opensource) drivers are included in the xorg but i can't have desktop effects with radeon module loaded... apparently i need radeonhd (different set)

how can i verify if these are also included?

You should really start your own thread as business_kid already hinted if you have additional questions.
However, radeon in Xorg (contained in xf86-video-ati) != radeon in mesa != radeon in kernel. They are 3 completely different "drivers" with different purposes. I believe you still have something left behind by fglrx which is interfering with mesa (have you reinstalled mesa?), but the only way to be sure is to look at the X log file (/var/log/Xorg.0.log).
radeonhd has been merged in mainline radeon drivers some eons ago and is now deprecated.

business_kid 10-03-2012 04:49 AM

@ kernel-P4NIC:

Radeonhd is dead a long time. Whatever you are reading is simply out of date. The current situation is that xf86-video-ati (giving a radeon driver) and the radeon kernel module are the open source offering. It should provide everything - desktop effects, etc. If you have a decent (or recently decent) ATI/AMD card, you can alternatively use the fglrx (kernel module & driver supplied) which may be faster. That binary blob accepts an uninstall argument (/uninstall or --uninstall, forget which).

The handiest check to see if there's junk left about from fglrx is this
ls -l /usr/lib(64)/libGL*

Mesa libGL stuff is all 1.x (1.2, 1.3.x, 1.5.x). Fglrx uses very different numbers, and replaces these essential libs. Check what the symlinks are pointing at.

kernel-P4N1C 10-03-2012 09:52 AM

Well guys
I appreciate your help... the card i have is a HD 3400 which support has been depreciated by amd with current drivers; however, they are offering support on previous version, so i installed that.


Currently it is working. I'll remove the driver and make some test with the x86-video-ati to check which one is faster.

and don't worry
will create a new thread with the findings


All times are GMT -5. The time now is 09:50 AM.