Jump to content

Blitter questions


SebRmv

Recommended Posts

Are there here some blitter gurus who can answer these few questions:

 

- what is the right way to fill a buffer with a constant value ?

 

1-use B_SRCD to set fill pattern and work with LFU_S ?

2-use B_DSTD to set fill pattern and work with LFU_D ?

3-use B_PATD to set fill pattern and work with PATDSEL ?

 

- what is the right way to apply a logical operation to a buffer

(for instance XORing with 0x80) ?

 

1-use B_SRCD to set constant value and work with LFU_S_XOR_D|DSTEN ?

2-use B_DSTD to set constant value and work with LFU_S_XOR_D|SRCEN ?

(this latest solution implies that A1 = A2)

3-err, no... this does not work with B_PATD ;)

 

Thanks!

Link to comment
Share on other sites

- what is the right way to fill a buffer with a constant value ?

3-use B_PATD to set fill pattern and work with PATDSEL ?

- what is the right way to apply a logical operation to a buffer

(for instance XORing with 0x80) ?

1 or 2, I don't think that this will change something significaly.

Link to comment
Share on other sites

1 or 2, I don't think that this will change something significaly.

 

Ok, thanks

 

Actually, I asked that because I suspect there is a (very rare & unpredictible) bug in the blitter when using B_SRCD as logical mask

which affects memory transfers.

Link to comment
Share on other sites

Never say blitter is bugged!

 

It's always the programmer's own fault!

 

I FOUND THE BUG :yes: :yes: :yes: :yes:

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...