martin wrote:
Thnx for enable.c hint :) Seems a rather long list of items in that
swtich to dig through ...
I have some very newbish questions in my pocket, better i lay them out
before i write one single line of code at all.
a) does mesa software rendering try to use the memory of the graphics
chip ? the thing is, the sis chipset was invented by an "einstein", the
graphics chip actually has to ask the cpu for memory since the memory
controller is inside the cpu. so if i don't use the rendering
capabilities of the gpu anyway i have no reason to make that memory trip
there and back, i'd be much better off on a regular memory buffer and
ignore the graphics card totally until i have the image ready to shoot
at it.
When DRI-based drivers do software rendering, they write to mmapp'd
video memory. This can be slow.
Non-DRI drivers, like the x11 driver, typically render to an XImage in
regular memory in the process's address space.
b) does software rendering mesa use regular Xlib calls for drawing ?
The x11 driver does, sometimes (DRI drivers don't). Depends on
whether you're currently drawing to the front or back color buffer.
I
just benchmarked my mplayer over here, the X11 driver and the XVideo
driver do basically the same thing there, they shoot images into the
screen one after another, but the xvideo driver performs twice as fast
on 500x300 images. if we could somehow render the image into the regular
memory and then boost it to the screen via xvideo's XvPutImage or
XvShmPutImage, it could be faster than it is right now ....
Mesa's x11 driver already uses a shared-memory pixmap for back-buffer
rendering and XShmPutImage() for doing glXSwapBuffers().
Xvideo interface on my laptop has pretty good hardware scaling which
probably also could be made use of.
has anybody attempted anything like this ?
Not that I know of.
are there any other systems out there that have xvideo acceleration but
no dri drivers so mesa is slow as hell but could be possibly accelerated
by xv hack ?
ps. just compared my laptop's xv tiny benchmark (pretty short C code, if
you're interested just ask) to the one of my desktop with nvidia's
geforce4 ... laptop has twice the performance with XvShmPutImage ^^, i
get around 900fps @ 320x240 and nearly 300fps @ 640x480 , just putting
images as fast as the machine can into the video overlay ... somehow i
feel that the Xlib interface isn't capable of same figures ...
I'd take a look at your test program. I'm not totally clear on what
you're doing.
-Brian
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev