Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X.org 7.0 + direct rendering
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
hookdonspeed
n00b
n00b


Joined: 03 Jun 2006
Posts: 3
Location: baltimore, md

PostPosted: Sat Jun 03, 2006 3:07 am    Post subject: X.org 7.0 + direct rendering Reply with quote

this is my first time attemting Xorg on a sparc system, and i cant seem to get direct rendering to work
ive done everything "I" can think of, i havent realy touched linux too much lately, so i was hoping someone could help me

i have a sun ultra 2 2x300mhz, 256ram, creator3d video.

im using X.org version 7.0 and kernel version 2.4.32-sparc-r2
dri is enabled in the kernel.

glxgears is running at about 120fps

glxinfo (choped down a bit)

name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
client glx vendor string: SGI
client glx version string: 1.4
GLX version: 1.2
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.4.1)
glu version: 1.3


here is my xorg.conf

##
# xorg.conf for kernel=2.4.x
# Graphics = Creator/Elite (ffb/afb)
# sun type5 keyboard


Section "ServerLayout"
Identifier "Modified_for_xorg-x11_kernel_2.4.26"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "HandleSpecialKeys" "Always"
Option "DontVTSwitch" "off"
EndSection

Section "Files"
RgbPath "/usr/share/X11/rgb"
# ModulePath "/usr/lib/modules"
FontPath "/usr/share/fonts/misc:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/truetype"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/ukr"
EndSection

Section "ServerFlags"
Option "StandbyTime" "10"
Option "SuspendTime" "20"
Option "OffTime" "30"
EndSection

Section "Module"
Load "dbe"
Load "type1"
Load "drm"
Load "dri"
Load "extmod"
Load "freetype"
Load "record"
Load "glx"
##
# If you are experimenting with USE='hardened dlloader' you should also use:
# If you are using >=xorg-x11-6.8.0-r4, dlloader is REQUIRED and you MUST use:
Load "cfb"
Load "cfb32"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
##
# This must be the Deprecated keyboard driver with xorg-x11-6.8.0-rxx
#
Driver "keyboard"
Option "Protocol" "Standard"
Option "XkbKeycodes" "sun(type5)"
Option "XkbModel" "type5"
Option "XkbRules" "sun"
Option "XkbLayout" "en_US"
Option "XkbTypes" "types/complete"
Option "XkbCompat" "compat/complete"
Option "XkbGeometry" "sun(type5unix)"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "MouseSystems"
Option "Device" "/dev/sunmouse"
Option "Emulate3Buttons" "false"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Samsung"
ModelName "SyncMaster 171v"
Option "DPMS" "on"
EndSection

Section "Device"
Identifier "Card0"
BoardName "Sun|FFB2+ Creator 3D (series 3) (ffb2+)"
VendorName "Sun Microsystems"
Driver "sunffb"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Modes "1024x768"
Depth 24
EndSubSection
EndSection

Section "DRI"
Group "video"
Mode 0666
EndSection



and next, my Xorg.0.log (amazingly no erros or warnings)


X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.4.32-sparc-r2 sparc64
Current Operating System: Linux DarkSun 2.4.32-sparc-r2 #1 SMP Mon May 29 08:19:27 EDT 2006 sparc64
Build Date: 02 June 2006
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Jun 2 23:32:17 2006
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Modified_for_xorg-x11_kernel_2.4.26"
(**) |-->Screen "Screen0" (0)
(**) | |-->Monitor "Monitor0"
(**) | |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) Option "Protocol" "Standard"
(**) Option "XkbCompat" "compat/complete"
(**) XKB: compat: "compat/complete"
(**) Option "XkbTypes" "types/complete"
(**) XKB: types: "types/complete"
(**) Option "XkbKeycodes" "sun(type5)"
(**) XKB: keycodes: "sun(type5)"
(**) Option "XkbGeometry" "sun(type5unix)"
(**) XKB: geometry: "sun(type5unix)"
(**) Option "XkbRules" "sun"
(**) XKB: rules: "sun"
(**) Option "XkbModel" "type5"
(**) XKB: model: "type5"
(**) Option "XkbLayout" "en_US"
(**) XKB: layout: "en_US"
(==) Keyboard: CustomKeycode disabled
(WW) The directory "/usr/share/fonts/truetype" does not exist.
Entry deleted from font path.
(**) FontPath set to "/usr/share/fonts/misc:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/cyrillic,/usr/share/fonts/TTF,/usr/share/fonts/ukr"
(**) RgbPath set to "/usr/share/X11/rgb"
(==) ModulePath set to "/usr/lib/xorg/modules"
(**) Option "DontVTSwitch" "off"
(**) Option "StandbyTime" "10"
(**) Option "SuspendTime" "20"
(**) Option "OffTime" "30"
(**) Option "HandleSpecialKeys" "Always"
(**) Always handling special keys in DDX
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.2
X.Org Video Driver: 0.8
X.Org XInput driver : 0.5
X.Org Server Extension : 0.2
X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/lib/xorg/modules/fonts/libbitmap.so
(II) Module bitmap: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/lib/xorg/modules/libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 0.8
(--) using VT number 7

(--) SBUS:(0xf0066954) Sun FFB 67MHz Creator at /SUNW,ffb@1e,0
(II) Addressable bus resource ranges are
(II) OS-reported resource ranges:
(II) OS-reported resource ranges after removing overlaps with PCI:
(II) All system resource ranges:
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "type1"
(II) Loading /usr/lib/xorg/modules/fonts/libtype1.so
(II) Module type1: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.2
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Type1
(II) LoadModule: "drm"
(II) Loading /usr/lib/xorg/modules/linux/libdrm.so
(II) Module drm: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Reloading /usr/lib/xorg/modules/linux/libdrm.so
(II) Loading extension XFree86-DRI
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "freetype"
(II) Loading /usr/lib/xorg/modules/fonts/libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
compiled for 7.0.0, module version = 2.1.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font FreeType
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.13.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension RECORD
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/lib/xorg/modules/extensions/libGLcore.so
(II) Module GLcore: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension GLX
(II) LoadModule: "cfb"
(II) Loading /usr/lib/xorg/modules/libcfb.so
(II) Module cfb: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Loading /usr/lib/xorg/modules/libmfb.so
(II) Module mfb: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.2
(II) LoadModule: "cfb32"
(II) Loading /usr/lib/xorg/modules/libcfb32.so
(II) Module cfb32: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/xorg/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/xorg/modules/libmfb.so
(II) LoadModule: "sunffb"
(II) Loading /usr/lib/xorg/modules/drivers/sunffb_drv.so
(II) Module sunffb: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.1
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 0.8
(II) LoadModule: "mouse"
(II) Loading /usr/lib/xorg/modules/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.3
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 0.5
(II) LoadModule: "keyboard"
(II) Loading /usr/lib/xorg/modules/keyboard_drv.so
(II) Module keyboard: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 0.5
(II) SUNFFB: driver for Creator, Creator 3D and Elite 3D
(--) Assigning device section with no busID to SBUS:/SUNW,ffb@1e,0
(II) resource ranges after probing:
(==) SUNFFB(0): RGB weight 888
(==) SUNFFB(0): Default visual is TrueColor
(==) SUNFFB(0): Using gamma correction (1.0, 1.0, 1.0)
(==) SUNFFB(0): Using HW cursor
(II) Loading sub module "xf8_32wid"
(II) LoadModule: "xf8_32wid"
(II) Loading /usr/lib/xorg/modules/libxf8_32wid.so
(II) Module xf8_32wid: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/xorg/modules/libmfb.so
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/xorg/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/xorg/modules/libmfb.so
(II) Loading sub module "cfb16"
(II) LoadModule: "cfb16"
(II) Loading /usr/lib/xorg/modules/libcfb16.so
(II) Module cfb16: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/xorg/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/xorg/modules/libmfb.so
(II) Loading sub module "cfb24"
(II) LoadModule: "cfb24"
(II) Loading /usr/lib/xorg/modules/libcfb24.so
(II) Module cfb24: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/xorg/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/xorg/modules/libmfb.so
(II) Loading sub module "cfb32"
(II) LoadModule: "cfb32"
(II) Reloading /usr/lib/xorg/modules/libcfb32.so
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/xorg/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/xorg/modules/libmfb.so
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "xaa"
(II) LoadModule: "xaa"
(II) Loading /usr/lib/xorg/modules/libxaa.so
(II) Module xaa: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.2.0
ABI class: X.Org Video Driver, version 0.8
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Loading /usr/lib/xorg/modules/libramdac.so
(II) Module ramdac: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 0.1.0
ABI class: X.Org Video Driver, version 0.8
(II) Loading sub module "dbe"
(II) LoadModule: "dbe"
(II) Reloading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Loading extension DOUBLE-BUFFER
(==) SUNFFB(0): DPI set to (75, 75)
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC? No, I don't.
(II) resource ranges after preInit:
(II) /dev/fb0: Detected FFB1, Single-buffered.
(II) /dev/fb0: BT9068 (PAC1) ramdac detected (with normal cursor control)
(II) /dev/fb0: Detected Creator/Creator3D
(II) SUNFFB(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
8x8 mono pattern filled rectangles
Indirect CPU to Screen color expansion
Solid Lines
Dashed Lines
Driver provided ScreenToScreenBitBlt replacement
Driver provided WritePixmap replacement
(II) /dev/fb0: Using acceleration
(==) SUNFFB(0): Backing store disabled
(==) SUNFFB(0): Silken mouse enabled
(II) /dev/fb0: DGA support initialized.
(**) Option "dpms" "on"
(**) SUNFFB(0): DPMS enabled
(**) SUNFFB(0): DPMS enabled
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
(**) Option "Protocol" "MouseSystems"
(**) Mouse0: Device: "/dev/sunmouse"
(**) Mouse0: Protocol: "MouseSystems"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/sunmouse"
(**) Option "Emulate3Buttons" "false"
(**) Mouse0: ZAxisMapping: buttons 4, 5, 6 and 7
(**) Mouse0: Buttons: 11
(**) Option "BaudRate" "1200"
(**) Mouse0: BaudRate: 1200
(**) Option "CoreKeyboard"
(**) Keyboard0: Core Keyboard
(**) Keyboard0: Protocol: Standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "sun"
(**) Keyboard0: XkbRules: "sun"
(**) Option "XkbModel" "type5"
(**) Keyboard0: XkbModel: "type5"
(**) Option "XkbLayout" "en_US"
(**) Keyboard0: XkbLayout: "en_US"
(**) Option "XkbKeycodes" "sun(type5)"
(**) Keyboard0: XkbKeycodes: "sun(type5)"
(**) Option "XkbTypes" "types/complete"
(**) Keyboard0: XkbTypes: "types/complete"
(**) Option "XkbCompat" "compat/complete"
(**) Keyboard0: XkbCompat: "compat/complete"
(**) Option "XkbGeometry" "sun(type5unix)"
(**) Keyboard0: XkbGeometry: "sun(type5unix)"
(**) Option "CustomKeycodes" "off"
(**) Keyboard0: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)


and heres my make.conf, it may help

CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
MAKEOPTS="-j3"
USE="-kde dlloader drm dri sparc ogg opengl"
VIDEO_CARDS="sunffb"
_________________
Sun Ultra2 2x300
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Mon Jun 05, 2006 12:43 pm    Post subject: Reply with quote

Direct rendering for the Creator is disabled in all current versions of xorg-x11 (6.8.2-r7, 7.<anything>). The code in the sunffb driver to support it is not compiled (it's disabled with {#if 0 ... #endif} blocks). According to David Miller (davem), one of the authors of the driver, it is not possible to do both direct rendering and correct font rendering, and correct font rendering seems the better choice.

That said: As you noticed, openGL works fine with Creator, but it always goes through Mesa indirect, no matter what you do. As a consolation, xaa (2D acceleration) is now supported.

We do not know any way around this, especially because in 2.6 kernels, DRM for the ffb will not build anyway (errors at compile time). I hope this helps answer your question, however.

Regards,
Ferris
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum