[Mesa-dev] Status update of XvMC on R600

Christian König deathsimple at vodafone.de
Wed Nov 10 14:16:31 PST 2010


Am Mittwoch, den 10.11.2010, 14:11 -0700 schrieb Brian Paul:
> Here's an idea.  I may be totally off base (this is off the top of my 
> head) but suppose the interlaced texture is:
> 
> A B C D  (even line)
> e f g h  (odd line)
> I J K L  (even line)
> m n o p  (odd line)
> 
> Couldn't you lie to the hardware and tell it that the texture is 
> really 8x2 instead of 4x4.  Then, the even lines would be in the left 
> half of the texture and the odd lines would be in the right half:
> 
> A B C D e f g h
> I J K L m n o p
> 
> Notice that the texture data layout in memory is the same in either case.
> 
> You'd have to tweak your texcoords to address the left(even) or 
> right(odd) half of the image but I think bilinear simpling would do 
> what you need.
I had the same idea yesterday while searching for a proper solution.

> I guess one problem would be bilinear sampling down the middle where 
> the left and right halves meet.
That's the first reason i abandoned this idea, the other is that we
would need to reprogram the texture sampler in the middle of a drawing
or use two samplers per texture.

Christian.



More information about the mesa-dev mailing list