Re: vgapci doesn't want to attach agp on ASUS M5A

From: Dmitry Pryanishnikov <dmitry_at_atlantis.dp.ua>
Date: Fri, 30 Dec 2005 00:40:03 +0200 (EET)
Hello!

On Thu, 29 Dec 2005, Jonathan Fosburgh wrote:
>> -	if (pci_find_extcap(dev, PCIY_AGP, NULL) == 0)
>> +//	if (pci_find_extcap(dev, PCIY_AGP, NULL) == 0)
>>   		device_add_child(dev, "agp", -1);
>>
>
> This fixed drm on my Compaq dc7100.  I now get:
>
> vgapci0: <VGA-compatible display> port 0x1800-0x1807 mem
> 0xcfd00000-0xcfd7ffff,0xe0000000-0xefffffff,0xcfd80000-0xcfdbffff
> irq 16 at device 2.0 on pci0
> agp0: <Intel 82915G (915G GMCH) SVGA controller> on vgapci0
> agp0: detected 7932k stolen memory
> agp0: aperture size is 256M
> drm0: <Intel i915G> on vgapci0
> info: [drm] AGP at 0xcfd00000 0MB
> info: [drm] Initialized i915 1.2.0 20041217
>
>
> However, I now get the following errors when trying to run things like
> glxinfo, glxgears:
>
> ERROR: line 125, Function intelInitDriver, File intel_screen.c
> libGL warning: 3D driver returned no fbconfigs.
> libGL error: InitDriver failed
> libGL error: reverting to (slow) indirect rendering
>
> I am using the current xorg server snap and dri-devel.

  I don't know why it is so. I've just installed good old XFree86-4 from
ports (4.5.0), including xfree86-dri-4.5.0, and DRI seems to work properly:
glxinfo says

name of display: :0.0
display: :0  screen: 0
direct rendering: Yes

and benchclock utility (from port x11-clocks/glclock) shows actual 
performance improvement. Here is diff of benchclock's logs without
and with DRI (machine is ASUS M5A notebook, Intel Pentium M 1.86GHz Dothan 
CPU with 2Mb cache, 256Mb of DDR2-400 memory, Intel 915GM chipset):

--- bench-no-dri.log	Thu Dec 29 23:37:45 2005
+++ bench.log	Thu Dec 29 23:45:32 2005
_at__at_ -1,55 +1,55 _at__at_
  glclock-4.5 benchmark test.
  1. double buffers
-97.13 FPS  178858 TPS  at 1842 Triangles
+399.40 FPS  735694 TPS  at 1842 Triangles

  2. single buffer
-78.41 FPS  144412 TPS  at 1842 Triangles
+285.36 FPS  525522 TPS  at 1842 Triangles

  3. environment mapping double buffers
-82.07 FPS  153527 TPS  at 1870 Triangles
+379.20 FPS  709104 TPS  at 1870 Triangles

  4. environment mapping single buffer
-63.85 FPS  119306 TPS  at 1870 Triangles
+256.45 FPS  479655 TPS  at 1870 Triangles

  5. bi-linear environment mapping double buffers
-67.29 FPS  125851 TPS  at 1870 Triangles
+336.30 FPS  628881 TPS  at 1870 Triangles

  6. bi-linear environment mapping single buffer
-54.43 FPS  101728 TPS  at 1870 Triangles
+240.90 FPS  450483 TPS  at 1870 Triangles

  7. tri-linear environment mapping double buffers
-33.61 FPS  62832 TPS  at 1870 Triangles
+441.59 FPS  825605 TPS  at 1870 Triangles

  8. tri-linear environment mapping single buffer
-30.10 FPS  56287 TPS  at 1870 Triangles
+272.89 FPS  510510 TPS  at 1870 Triangles

  9. tri-linear shading texture double buffers
-29.39 FPS  54978 TPS  at 1870 Triangles
+314.90 FPS  588863 TPS  at 1870 Triangles

  10. tri-linear shading texture single buffer
-27.70 FPS  51799 TPS  at 1870 Triangles
+261.66 FPS  489192 TPS  at 1870 Triangles

  11. tri-linear transparency texture double buffers
-30.52 FPS  57035 TPS  at 1870 Triangles
+487.60 FPS  911812 TPS  at 1870 Triangles

  12. tri-linear transparency texture single buffer
-20.62 FPS  38522 TPS  at 1870 Triangles
+182.78 FPS  341836 TPS  at 1870 Triangles

  13. tri-linear transparency texture with over sampling double buffers
-10.32 FPS  22042 TPS  at 2140 Triangles
+320.83 FPS  686512 TPS  at 2140 Triangles

  14. tri-linear transparency texture with over sampling single buffer
- 7.02 FPS  14980 TPS  at 2140 Triangles
+59.38 FPS  127116 TPS  at 2140 Triangles

  15. tri-linear shading texture transparency texture double buffers
-17.17 FPS  54685 TPS  at 3198 Triangles
+245.72 FPS  785748 TPS  at 3198 Triangles

  16. tri-linear shading texture transparency texture single buffer
-13.61 FPS  43492 TPS  at 3198 Triangles
+123.26 FPS  394313 TPS  at 3198 Triangles

  17. tri-linear shading texture transparency texture high quality clock double buffers
-12.05 FPS  164862 TPS  at 13854 Triangles
+92.03 FPS  1274568 TPS  at 13854 Triangles

  18. tri-linear shading texture transparency texture high quality clock single buffer
- 9.43 FPS  131613 TPS  at 13854 Triangles
+64.75 FPS  896353 TPS  at 13854 Triangles



Sincerely, Dmitry
-- 
Atlantis ISP, System Administrator
e-mail:  dmitry_at_atlantis.dp.ua
nic-hdl: LYNX-RIPE
Received on Thu Dec 29 2005 - 21:40:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:49 UTC