Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Dec 2015 15:47:28 -0553.75
From:      "William A. Mahaffey III" <wam@hiwaay.net>
To:        Volodymyr Kostyrko <arcade@b1t.name>
Cc:        FreeBSD X11 mailing list <freebsd-x11@freebsd.org>, FreeBSD Questions !!!! <freebsd-questions@freebsd.org>
Subject:   Re: problems running OpenGL code
Message-ID:  <566C94A6.1090703@hiwaay.net>
In-Reply-To: <566C75F3.1090801@b1t.name>
References:  <566C3DAD.8090809@hiwaay.net> <20151212173509.fba928df.freebsd@edvax.de> <566C51CB.8040604@hiwaay.net> <566C536F.8080507@hiwaay.net> <566C5966.8020403@hiwaay.net> <566C75F3.1090801@b1t.name>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/12/15 13:37, Volodymyr Kostyrko wrote:
> On 12.12.2015 19:27, William A. Mahaffey III wrote:
>> 41    1 0xffffffff81c91000 963a67 nvidia.ko
>
> Can you try disabling this kernel module and deinstalling 
> nvidia-driver package? It does THINGS to make rendering work like 
> substituting original GL libraries with nVidia ones.
>

Very well, done, & slightly different behavior:


[wam@kabini1, ~, 3:44:08pm] 959 % PreBFCGL.TEST
Segmentation fault (core dumped)
[wam@kabini1, ~, 3:44:14pm] 960 % cat BFC.LOG

  PreBFCGL.TEST: begin WAM III pre-processor execution on host 
kabini1.local ....
  PreBFCGL.TEST: compiled on Dec 12 2015 @ 06:04:00.
  PreBFCGL.TEST: commence execution on Sat Dec 12 15:44:13 2015.

  PreBFCGL.TEST: sizeof(short) 2, sizeof(int) 4, sizeof(long) 8, 
sizeof(clock_t) 4, sizeof(time_t) 8.
  PreBFCGL.TEST: sizeof(float) 4, sizeof(real) 4, sizeof(double) 8, 
sizeof(void *) 8, ticks 128.
  Couldn't find configuration file './.BFCrc', couldn't find 
'/home/wam/.BFCrc', giving up.
  Alpha: changing Verbosity from Silent to Normal.
  Gen2D: setting up for chatty 2 (Normal) .... done.
  Gen3D: setting up for chatty 2 (Normal) .... done.
  Main: Updating Verbosity from 0 (Silent) to 2 (Normal) ....
  SetReadVerbosity: Updating Verbosity from 0 (Silent) to 2 (Normal) ....
  Changing Expertise from Novice to Standard.
  SetExprLoud: setting chatty from 0 to 2 ....
  Interactive mode execution, individual case(s), Debug 0, DbgMem 0, 
Standard expertise, Normal verbosity.
  DebugVarbls: var'bl verbosity reset from 0 to 2 ....
  DebugVarbls: var'bl verbosity reset from 2 to 3 ....
  DISPLAY ->:0.0<- (Local)

  Machine epsilons:
            raw            4 bits
   float 5.96046E-08     9.53674E-07
  double 1.11022E-16     1.77636E-15
  InitGraphics: begin ....
Error: No RGB visual with depth buffer

         Done, Bailing out ....
  Saving Model Command File to Model_0.in .... done.
[wam@kabini1, ~, 3:44:16pm] 961 %

This was with the radeon module loaded:

[root@kabini1, /etc, 3:43:47pm] 831 % kldstat
Id Refs Address            Size     Name
  1  145 0xffffffff80200000 1611688  kernel
  2    1 0xffffffff81812000 a890     geom_stripe.ko
  3    2 0xffffffff8181d000 c19b8    linux.ko
  4    1 0xffffffff818df000 43a8     snd_driver.ko
  5    2 0xffffffff818e4000 8180     snd_ad1816.ko
  6    2 0xffffffff818ed000 8a00     snd_als4000.ko
  7    2 0xffffffff818f6000 a718     snd_atiixp.ko
  8    2 0xffffffff81901000 87d0     snd_cs4281.ko
  9    2 0xffffffff8190a000 ffa0     snd_ds1.ko
10    2 0xffffffff8191a000 dc20     snd_envy24.ko
11    4 0xffffffff81928000 2718     snd_spicds.ko
12    2 0xffffffff8192b000 cfc0     snd_envy24ht.ko
13    2 0xffffffff81938000 95b8     snd_ess.ko
14    5 0xffffffff81942000 5e78     snd_sbc.ko
15    2 0xffffffff81948000 7700     snd_fm801.ko
16    3 0xffffffff81950000 13bd8    snd_mss.ko
17    2 0xffffffff81964000 d858     snd_maestro.ko
18    2 0xffffffff81972000 f0d0     snd_maestro3.ko
19    2 0xffffffff81982000 14340    snd_neomagic.ko
20    2 0xffffffff81997000 8378     snd_sb16.ko
21    2 0xffffffff819a0000 7cf0     snd_sb8.ko
22    2 0xffffffff819a8000 8f88     snd_solo.ko
23    2 0xffffffff819b1000 8a88     snd_t4dwave.ko
24    2 0xffffffff819ba000 7d88     snd_via82c686.ko
25    2 0xffffffff819c2000 8d70     snd_vibes.ko
26    1 0xffffffff819cb000 3cb8     amdtemp.ko
27    3 0xffffffff819cf000 73958    vboxdrv.ko
28    1 0xffffffff81a43000 12470    tmpfs.ko
29    1 0xffffffff81c12000 9fd4     linprocfs.ko
30    1 0xffffffff81c1c000 52f2     fdescfs.ko
31    1 0xffffffff81c22000 28c9f    vboxguest.ko
32    2 0xffffffff81c4b000 29f1     vboxnetflt.ko
33    2 0xffffffff81c4e000 b258     netgraph.ko
34    1 0xffffffff81c5a000 4449     ng_ether.ko
35    1 0xffffffff81c5f000 3f8a     vboxnetadp.ko
36    1 0xffffffff81c63000 121fa    ipfw.ko
39    1 0xffffffff81c76000 2c8e     geom_nop.ko
40    1 0xffffffff81c79000 17677    drm.ko
41    1 0xffffffff81c91000 1194c9   radeonkms.ko
42    1 0xffffffff81dab000 1b23     iicbb.ko
43    4 0xffffffff81dad000 1d47     iicbus.ko
44    1 0xffffffff81daf000 1cbf     iic.ko
45    1 0xffffffff81db1000 46f31    drm2.ko
[root@kabini1, /etc, 3:43:53pm] 832 %


xorg.conf was/is still using the VESA driver, do I need any changes 
there as well ?


[wam@kabini1, ~, 3:44:16pm] 961 % cat /etc/X11/xorg.conf
Section "ServerLayout"
         Identifier     "X.org Configured"
         Screen      0  "Screen0" 0 0
         InputDevice     "Mouse0" "CorePointer"
         InputDevice     "Keyboard0" "CoreKeyboard"
         Option          "DontZap"       "off"
EndSection

Section "Files"
         ModulePath   "/usr/local/lib/xorg/modules"
         FontPath     "/usr/local/lib/X11/fonts/misc/"
         FontPath     "/usr/local/lib/X11/fonts/TTF/"
         FontPath     "/usr/local/lib/X11/fonts/OTF"
         FontPath     "/usr/local/lib/X11/fonts/Type1/"
         FontPath     "/usr/local/lib/X11/fonts/100dpi/"
         FontPath     "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
         Load  "dbe"
         Load  "dri"
         Load  "dri2"
         Load  "extmod"
         Load  "record"
         Load  "glx"
EndSection

Section "InputDevice"
         Identifier  "Keyboard0"
         Driver      "kbd"
EndSection

Section "InputDevice"
         Identifier  "Mouse0"
         Driver      "mouse"
         Option      "Protocol" "auto"
         Option      "Device" "/dev/sysmouse"
         Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
         Identifier "Mouse0"
         Driver "vboxmouse"
EndSection

Section "Monitor"
         Identifier   "Monitor0"
         VendorName   "Monitor Vendor"
         ModelName    "Monitor Model"
EndSection

Section "Device"
         ### Available Driver options are:-
         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
         ### [arg]: arg optional
         #Option     "ShadowFB"                  # [<bool>]
         #Option     "DefaultRefresh"            # [<bool>]
         #Option     "ModeSetClearScreen"        # [<bool>]
         Identifier  "Card0"
         Driver      "vesa"
         VendorName  "Advanced Micro Devices, Inc. [AMD/ATI]"
         BoardName   "Kabini [Radeon HD 8280 / R3 Series]"
         BusID       "PCI:0:1:0"
EndSection

Section "Device"
         ### Available Driver options are:-
         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
         ### [arg]: arg optional
         Identifier "Card0"
         Driver "vboxvideo"
         VendorName "InnoTek Systemberatung GmbH"
         BoardName "VirtualBox Graphics Adapter"
         BusID "PCI:0:2:0"
EndSection

Section "Screen"
         Identifier "Screen0"
         Device     "Card0"
         Monitor    "Monitor0"
         SubSection "Display"
                 Viewport   0 0
                 Depth     1
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     4
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     8
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     15
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     16
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     24
         EndSubSection
EndSection

[wam@kabini1, ~, 3:44:27pm] 962 %

-- 

	William A. Mahaffey III

  ----------------------------------------------------------------------

	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                            -- Gen. George S. Patton Jr.




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