LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-01-2012, 04:47 PM   #1
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,305

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
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?
 
Old 10-01-2012, 07:10 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
In June, llvm was not supporting indirect addressing

http://phoronix.com/forums/showthrea...g-A-Bit-Better
 
Old 10-01-2012, 08:18 PM   #3
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, FreeBSD 10.0
Posts: 3,070
Blog Entries: 15

Rep: Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769
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.
 
Old 10-02-2012, 08:50 AM   #4
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Rep: Reputation: 18
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
 
Old 10-02-2012, 08:59 AM   #5
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 609

Rep: Reputation: 180Reputation: 180
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.
 
Old 10-02-2012, 09:34 AM   #6
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,305

Original Poster
Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
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.
 
Old 10-02-2012, 09:45 AM   #7
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 609

Rep: Reputation: 180Reputation: 180
Quote:
Originally Posted by business_kid View Post
@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.
 
Old 10-02-2012, 11:10 AM   #8
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,305

Original Poster
Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
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.
 
Old 10-02-2012, 11:50 AM   #9
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 609

Rep: Reputation: 180Reputation: 180
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
 
Old 10-02-2012, 10:03 PM   #10
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Rep: Reputation: 18
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?
 
Old 10-03-2012, 02:07 AM   #11
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 609

Rep: Reputation: 180Reputation: 180
Quote:
Originally Posted by kernel-P4N1C View Post
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.
 
Old 10-03-2012, 04:49 AM   #12
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,305

Original Poster
Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
@ 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.
 
Old 10-03-2012, 09:52 AM   #13
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Rep: Reputation: 18
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Question on Ati driver animeresistance Slackware 3 09-11-2011 11:16 PM
ATi Driver 9.x Series on Slackware ATi Radeon HD4850 vince4amy Slackware 3 05-05-2009 04:25 PM
ati driver question campher Slackware 7 07-19-2007 02:04 AM
ATi card, ATI driver & Slackware 10.2 igor@44 Linux - Software 7 03-19-2006 02:37 PM
ati driver question and console question kholdstayr Slackware 2 07-18-2005 03:30 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration