On 4/26/07, Phillip Ezolt <[EMAIL PROTECTED]> wrote:
> Oliver & Dave,
>
> >
> > You maybe have missed out on #dri-devel on freenode irc, it works
> > reasonably well for getting insta-answers depending on timezone etc..
>
> Ah.  I HAVE missed that.  I'll have to hang out there.  I usually have
> the wireless network turned off when I'm X hacking, but this gives me
> a reason to fix that.
>
> >
> > >> Dave eventually got the RS480 working, (which is great, but
> > >> frustrating that I couldn't have the rush... ;-) )
> >
> > Hey 3D is still busted on the rs480, I've no idea when I'll get around to
> > it, I'm sorta tipping away and the internals of r300 are not the nicest
> > place to hack around in..
>
> Alright.  I've been playing with trying to get simple triangles to
> work with my 200M.
>
> (I've set hw_tcl to 0, and things still don't work properly.)
>
> My biggest obstacle is getting blob dumps that I can compare to what X
> is currently doing.
>
> I've tried "revenge", but I am getting bogus results.  I'm pretty sure
> that the problem is that I don't have the "AGP apeture" variable set
> properly.   Oliver, what does that value represent?

Currently this is hard-coded, because I haven't done dynamic calculation of
those variables yet.

You can determine REG_ADDR from "lspci -v"; you want the line that matches
"(32-bit, non-prefetchable) [size=64K]". In the following example, REG_ADDR
would be 0xe5000000. I haven't figured out how to calculate REG_SIZE yet; It's
just copied from IBA.

02:00.0 VGA compatible controller: ATI Technologies Inc RV350 AP
[Radeon 9600] (prog-if 00 [VGA])
        Subsystem: ATI Technologies Inc RV350 AP [Radeon 9600]
        Flags: bus master, 66MHz, medium devsel, latency 255, IRQ 16
        Memory at c0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at c000 [size=256]
        Memory at e5000000 (32-bit, non-prefetchable) [size=64K]
        [virtual] Expansion ROM at e4000000 [disabled] [size=128K]
        Capabilities: [58] AGP version 3.0
        Capabilities: [50] Power Management version 2


You can determine AGP_ADDR and AGP_SIZE from "dmesg | grep 'AGP aperture'".

agpgart: AGP aperture is 64M @ 0xe0000000

> Is it the physical address of the ring buffer?  In a system where the
> ring buffer lives in GART addressible memory, wouldn't you basically
> need to reimplement the GART in software? (Because there is no single
> address range which represents the entire ring buffer... It is a
> series of pages...)  If the ring buffer lives in the framebuffer,
> things are much easier..
>
> ...
>
> Also, I've tried glxtest, but the indirect buffer has NO match in the
> maps.log file.
>
> Dave, how did you generate this file?  (Was it from an indirect buffer?)
> http://www.skynet.ie/~airlied/dri/mypa.parsed

That appears to be a dump of an indirect buffer, parsed with
pretty_print_command_stream.tcl. Currently that program is able to parse the
indirect buffers better than my tool, as it can print register names in human
readable format, but this is a high priority on my TODO list too.

If you want to use pretty_print_command_stream.tcl you must feed it the indirect
buffer in hexadecimal format, one value per line, with no "0x" prefix.

deadbeef
deadbeef
deadbeef
...

If you want revenge to dump in this format, you would have to modify
analyze.c:analyze_indirect_buffer.

Change the following line.

analyze_packets (0, ib_size, ib_mapped_addr);

To.

int i;
for (i = 0; i < ib_size; i++)
  {
    printf ("%80lx\n", ib_mapped_addr[i]);
  }

> I downloaded glxtest from sourceforge/r300. Is there a more updated
> version that works?

It should work, but a lot of the R300 tools are very hard-coded, so sometimes
they require some work. I hope that my tool will become a lot easier to use and
more dynamic.

I do have more work to do on it, though. I'd like to hear feedback, too. :) Any
wanted features, bugs, annoyances, etc.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to