rjoy wrote:
>over last one week, i've been surfing all over the web to get information
>on how to implement 3D acceleration on an i810 board running redhat6.2
>(kernel 2.2.14-5 , xfree86-3.3.6 , with intel-i810 servers ); i'm
        joy,kernel 2.2.14,xfree86-3.3.6 does not support 3D accel on i180.so you 
will never find a website with info on that.if u find one it could be a troll.
To get 3D-accel on i810 on linux I recomend you upgrade kernel 2.2.19 or 
kernel 2.4.x to get the correct kernel DRI drivers for i180.and upgrade to 
Xfree86-4.1

>thoroughly confused over things like dri, utah-glx, mesa and the like.
>could somebody tell me the following: (this could be the nucleus of an
>i810-3d acceleration HOWTO i guess!)
        utah-glx is used in xfree3.x for open GL rendering.Mesa 3.x is used in the 
latest Xfree4.x Now i thing utah-glz,mesa have merged.i am not sure.and DRI 
is Direct Rendering Infrastructure,developed by VAlinux/precision insight as 
a mechanism for the modern modular XFree4.x Xserver to have a common standard 
for accelerated 3d graphics,using a kernel mode driver.not all XFree86 
supported cards support DRI.DRI requires  the xfree86 based userland module 
for X and a kernel space driver as a kernel module.There is also DGA,and 
RENDER extensions of XFree server u have to take note of.

here are the answers to your questions
>
>(1): how do i get 3d acceleration running with my present setup ?
        you cannot get 3d accel with ur present setup.  
>
>(2): if that is not possible, what is the path of least resistance ?
        upgrade kernel and Xfree86
note :upgrading X alone is not enough as even if u have a i810 dri driver in 
the kernel u will have a version conflict.so upgrade the kernel also.

>
>(3): does DRI come alongwith XFree86-4.x or does one have to install it 
>     seperately ? 
        DRI comes along with Xfree4.x and the kernel.
>
>(4): does XFree86-4.0.m (the stuff coming with redhat and suse > 7.0)
>     support i810-3d acceleration ? i'm particularly confused about this
>     point, since i've got conflicting information from different sources
>     on the net.
        Xfree86 4.0.2 and above support 3d accel on i810 with kernel 2.2.18 or above 
properly.the RENDER extesion works only with XFree4.1
>
>(5): since the i810 boards are really popular in india, will someone
>     (shankar balan ? ) post a 3d-acceleratio HOWTO for the i810 ? 
        

>
>i'm dying to see what my 3d hydrodynamics code is doing in real time
>(work) and race the tux (play), so any help will really be appreciated!
        also check out blender and 3d-quakeIII arena and a logmore games
        http://www.libsdl.org  http://www.lokigames.com


        This is  the procedure to install and use 3d accel/DRI on i810
1)install Xfree86 4.x(recomended Xfree4.1 or above)
2)make sure the kernel has the i810.o in 
/lib/modules/<kernel.ver>/misc/i180/o for 2.2.x kernels
 /lib/modules/<kernel.ver>/drivers/char/i180.o for 2.4.x kernels.
note:DRI drivers for other cards like mga/3dfx are mga.o and tdfx.o.I am 
looking for the DRI driver for sis as sis has DRI suport in Xfree86.but I 
dont find any kernel driver for it.any body found one?
3)configure the /etc/X11/XF86Config-4 file.It should contain the following.
a)in the Section "Module"
    Load        "glx"
    Load        "dri"
    SubSection  "extmod"
#       Option  "omit xfree86-dga" #(uncommenting will disable DGA2.0)
    EndSubSection

b)a section called 
Section "DRI"
    Mode        0666
EndSection
c)in the device section
Section "Device"
    Identifier  "Intel 810"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver      "i810"
    VideoRam    12000 
   #Option     "ColorKey"
   # Option     "CacheLines"
   #Option     "Dac6Bit"
    # Clock lines
    Option      "DRI"
    # Uncomment following option if you see a big white block
    # instead of the cursor!
    #    Option      "sw_cursor"

    Option      "DPMS"
EndSection
d)in the diaplay section
Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480" "640x400" #modes below 
this do not work any workarounds?plz suggest.
        ViewPort    0 0
    EndSubsection

please note that you should give vram as much as possible.a value of 12000 or 
above is fine.this is not ur AGP memory but this is taken from main memory my 
i810.so even if u have 4mb agp u can give 12000.

This is all that is necessary.if every thing goes fine you will get i180 with 
3d accel.GL and DRI support and have the ability to play 3d/OpenGL games and 
apps.
to confirm that you have got 3D accel/DRI open an Xterm and type
[sanjeev@chennai sanjeev]$ xvi
xvidtune  xview     xvinfo
[user@hosr]$ glxinfo
name of display: :0.0
Loading required GL library /usr/X11R6/lib/libGL.so.1.2
display: :0  screen: 0
>direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Keith Whitwell, Precision Insight Inc.
>OpenGL renderer string: Mesa DRI I810 20010321
OpenGL version string: 1.2 Mesa 3.4.2
OpenGL extensions:
    GL_ARB_multitexture, GL_ARB_transpose_matrix, GL_EXT_abgr,
    GL_EXT_blend_func_separate, GL_EXT_clip_volume_hint,
    GL_EXT_compiled_vertex_array, GL_EXT_histogram, GL_EXT_packed_pixels,
    GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_stencil_wrap,
    GL_EXT_texture3D, GL_EXT_texture_env_add, GL_EXT_texture_object,
    GL_EXT_vertex_array, GL_MESA_window_pos, GL_MESA_resize_buffers,
    GL_NV_texgen_reflection, GL_PGI_misc_hints, GL_SGIS_pixel_texture,
    GL_SGIS_texture_edge_clamp
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
 
   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x24 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x25 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x26 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x27 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  0 0 Slow
0x28 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16 16  0 0 Slow
0x29 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16 16  0 0 Slow
0x2a 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16 16  0 0 Slow
0x2b 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x2c 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x2d 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x2e 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x2f 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  0 0 Slow
0x30 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16 16  0 0 Slow
0x31 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16 16  0 0 Slow
0x32 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16 16  0 0 Slow
[user@host}$
note the lines marked with >.
it says direct rendering: Yes ,OpenGL renderer string:Mesa DRI I810 20010321.
this proves that i810 accel is used or u will get software renderer.

next try this command.
[user@host]$ xdpyinfo
name of display:    :0.0
version number:    11.0
vendor string:    The XFree86 Project, Inc
vendor release number:    40100000
XFree86 version: 4.1.0
maximum request size:  4194300 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x3c00065, revert to PointerRoot
number of extensions:    28
    BIG-REQUESTS
    DOUBLE-BUFFER
    DPMS
    Extended-Visual-Information
    FontCache
>    GLX
    LBX
    MIT-SCREEN-SAVER
    MIT-SHM
    MIT-SUNDRY-NONSTANDARD
>    RENDER
    SECURITY
>    SGI-GLX
    SHAPE
    SYNC
    TOG-CUP
    X3D-PEX
    XC-APPGROUP
    XC-MISC
    XFree86-Bigfont
>    XFree86-DGA
>    XFree86-DRI
    XFree86-Misc
    XFree86-VidModeExtension
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1024x768 pixels (260x195 millimeters)
  resolution:    100x100 dots per inch
  depths (7):    16, 1, 4, 8, 15, 24, 32
  root window id:    0x3e
  depth of root window:    16 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x20
  default number of colormap cells:    64
  preallocated pixels:    black 0, white 65535
  options:    backing-store NO, save-unders NO
  largest cursor:    64x64
  current input event mask:    0xf84033
    KeyPressMask             KeyReleaseMask           EnterWindowMask
    LeaveWindowMask          KeymapStateMask          SubstructureNotifyMask
    SubstructureRedirectMask FocusChangeMask          PropertyChangeMask
    ColormapChangeMask
  number of visuals:    16
  default visual id:  0x23
note the > marked lines.the extensions RENDER,XFree86-DGA,XFree86-DRI,GLX etc 
must be available.

next run the command.
[user@host]$dga
this will use the fill screen and change the screen colorsfor each key u 
press.pressing q will quit this program and getr you back to xterm.
warning:this could hang the console.

next to check if glx/glut in working fine run the fillowing graphics and see.
[user@host]$glxgears
[user@host]$glutfx
[user@host]$morph3d
and c the speed difference in these gl programs.

if there is any failure check the /var/log/XFree86.0.log
this will give you some clue wrt the failure.


Enjoy 3D accelerated linux/Xfree86

regards

sanjeev

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to