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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...