Am 2003.06.09 18:05:35 +0200 schrieb(en) Keith Whitwell:
Andreas,
Applied this today & had a brief look.
I needed to bump the version number in shared/drm/radeon.h to 1.9.0 before the extensions were enabled. Maybe this got missed from the diff?
I didn't want to bump the version before the packets for cubemap-texturing are in place... so I just added a check for >= 1.9.0 OR getenv( "RADEON_RECTANGLE_FORCE_ENABLE")
What problems are you having with texrect.c? I get:
texrect: radeon_ioctl.c:414: radeonEmitBlit: Assertion `(src_offset & 1023) == 0' failed.
Is this the same as you're seeing?
No, I dont get the assertion. It "just doesnt work as expected": I get white textures with grey/black points/lines. If I disable/comment out the radeonEmitBlit(), it looks the same, so maybe the blit doesnt work? On the other hand the assertion you get shouldn't occur, so it looks like I missed something.
The strange part is, that yuvrect (at least seems to) work(s) well. yuvrect even worked without the additional txsize/txpitch packet. And yuvrect works when RADEON_AGPTEXTURING_FORCE_DISABLE=1.
thanks for having a look at the patch
Keith
greetings, Andreas
PS: here's the begin of some output I get when running texrect, with RADEON_DEBUG=ioctl (unfortunately it sometimes hangs the Xserver until I kill texrect)
[EMAIL PROTECTED]:~/PRJ/MESA-CVS/build/tests> ./texrect 2 texture units supported, using 2.
2048 x 2048 max texture rectangle size
Texture 0: ../images/girl.rgb (194 x 188)
Texture 1: ../images/reflect.rgb (128 x 128)
radeonClear: all=1 cx=0 cy=0 cw=300 ch=300
radeonEmitState - lost context
radeonFlush
radeonFlushCmdBufLocked from radeonFlush
radeonClear( 385855 )
radeonUploadTexImages( 0x805df78, 0x8142210 ) sz=156672 lvls=0-0
radeonAllocDmaRegion 64896
radeonRefillCurrentDmaRegion
radeonEmitBlit src 340/4182000 0,0 dst: 340/3300000 0,0 sz: 194x78
radeonReleaseDmaRegion from radeonUploadRectSubImage
radeonAllocDmaRegion 64896
radeonRefillCurrentDmaRegion
radeonReleaseDmaRegion from radeonRefillCurrentDmaRegion
radeonReleaseDmaRegion -- DISCARD BUF 8
radeonEmitBlit src 340/4192000 0,0 dst: 340/3300000 0,78 sz: 194x78
radeonReleaseDmaRegion from radeonUploadRectSubImage
radeonAllocDmaRegion 26624
radeonRefillCurrentDmaRegion
radeonReleaseDmaRegion from radeonRefillCurrentDmaRegion
radeonReleaseDmaRegion -- DISCARD BUF 9
radeonEmitBlit src 340/41a2000 0,0 dst: 340/3300000 0,156 sz: 194x32
radeonReleaseDmaRegion from radeonUploadRectSubImage
radeonFlush
radeonEmitState - lost context
radeonFlushCmdBufLocked from radeonFlush
radeonUploadTexImages( 0x805df78, 0x81423f0 ) sz=65536 lvls=0-0
radeonAllocDmaRegion 65536
radeonRefillCurrentDmaRegion
radeonReleaseDmaRegion from radeonRefillCurrentDmaRegion
radeonReleaseDmaRegion -- DISCARD BUF 10
radeonEmitBlit src 200/41b2000 0,0 dst: 200/3327000 0,0 sz: 128x128
radeonReleaseDmaRegion from radeonUploadRectSubImage
radeonRefillCurrentDmaRegion
radeonReleaseDmaRegion from radeonRefillCurrentDmaRegion
radeonReleaseDmaRegion -- DISCARD BUF 11
radeonAllocEltsOpenEnded 6
radeonEmitState - lost context
radeonReleaseDmaRegion from flush_prims
radeonFlushElts
......
------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel