On Tue, 2003-06-10 at 13:14, Keith Whitwell wrote: 
> Andreas Stenglein wrote:
> > 
> > 3) in radeon_ioctl.c, function radeonEmitVbufPrim()
> > the first cmd is cleared before filled with the cmd_type:
> >    cmd[0].i = 0;
> >    cmd[0].header.cmd_type = RADEON_CMD_PACKET3_CLIP;
> >   ....
> > should this be done in radeonEmitBlit() also or
> > is that not necessary?
> 
> Quite possibly it should.

Definitely a good idea, or the other header fields may have random
contents. Actually, why not clear the header in AllocCmdBuf() instead of
in the callers? While it may be cleared unnecessarily sometimes like
that, the potential for random behaviour might be the worse option.


-- 
Earthling Michel Dänzer   \  Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast  \     http://svcs.affero.net/rm.php?r=daenzer



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to