Of course my patch is a bit of overkill, we don't need to calculate dest
before calling EnsureCmdBufSpace, I'll fix it later unless Eric gets to it
first....
Dave.
> I think I tracked it down, after 5 hours or so with Eric on IRC, of course
> ten mins after Eric goes to bed I find it ... it seems to fix ipers and my
> own application .. Dieter can you check if you can crash with the latest
> CVS...
>
> I've committed the following patch:
> Index: r200_cmdbuf.c
> ===================================================================
> RCS file: /cvs/mesa/Mesa/src/mesa/drivers/dri/r200/r200_cmdbuf.c,v
> retrieving revision 1.8
> diff -u -r1.8 r200_cmdbuf.c
> --- r200_cmdbuf.c 22 Sep 2004 06:27:02 -0000 1.8
> +++ r200_cmdbuf.c 23 Sep 2004 08:04:44 -0000
> @@ -127,6 +127,9 @@
> dest = rmesa->store.cmd_buf + rmesa->store.cmd_used;
> r200EnsureCmdBufSpace( rmesa, rmesa->hw.max_state_size );
>
> + /* we need to recalculate dest after EnsureCmdBufSpace
> + as we may flush the buffer - airlied */
> + dest = rmesa->store.cmd_buf + rmesa->store.cmd_used;
> if (R200_DEBUG & DEBUG_STATE) {
> foreach( atom, &rmesa->hw.atomlist ) {
> if ( atom->dirty || rmesa->hw.all_dirty ) {
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> --
> _______________________________________________
> Dri-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dri-devel
>
--
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
pam_smb / Linux DECstation / Linux VAX / ILUG person
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel