[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesa3d-users
Subject:    [Mesa3d-users] Whats the best/fastest way to copy textures to video memory ?
From:       Stefan Lucke <stefan () lucke ! in-berlin ! de>
Date:       2006-03-14 6:29:50
Message-ID: 200603140729.50206.stefan () lucke ! in-berlin ! de
[Download RAW message or body]

Hi,

for an video application I'm trying to allocate GL_YCBCR_MESA textures with:

  if (!(yuy2_map = (unsigned char *) glXAllocateMemoryMESA (dpy, scn_id,
                                        1024,
                                        (float) 0.2, (float) 0.2, (float) 0.5))) {
    fprintf (stderr, "agp-gart allocation failed\n");
  }

  if (!(yuy2_map = (unsigned char *) glXAllocateMemoryMESA (dpy, scn_id,
                                        4*1024*1024, 0.2, 0.2, 0.5))) {
    fprintf (stderr, "agp-gart allocation failed\n");
    if (!(yuy2_map = (unsigned char *) glXAllocateMemoryMESA (dpy, scn_id,
                                          4*1024*1024, 0.5, 0.5, 0.8))) {
      fprintf (stderr, "agp allocation failed\n");
      yuy2_map = yuy2_buf;
    }
  }

But for some reasons this fails with:
r200AllocateMemoryMESA: DRM_RADEON_ALLOC ret -12
agp-gart allocation failed
r200AllocateMemoryMESA: DRM_RADEON_ALLOC ret -12
agp-gart allocation failed
r200AllocateMemoryMESA: DRM_RADEON_ALLOC ret -12
agp allocation failed


Using normal static yuy_buf only get around 25fps with around 45% cpuload
in a test app wich only loads textures. Normal Xv out occupies only around
30% cpu load inluding video decoding.

Video card is a ati radeon 9200 with 256MB ram

from lspci:
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV280 [Radeon 9200] (rev 01)

from dmesg:
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected Intel i845 chipset
agpgart: AGP aperture is 128M @ 0xe0000000
[drm] AGP 0.99 Aperture @ 0xe0000000 128MB
[drm] Initialized radeon 1.7.0 20020828 on minor 0

-- 
Stefan Lucke



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mesa3d-users mailing list
Mesa3d-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic