Brian Paul wrote:
Keith Whitwell wrote:

Andreas Stenglein wrote:

Am 2003.06.10 12:12:56 +0200 schrieb(en) Keith Whitwell:

Keith Whitwell wrote:

Andreas Stenglein wrote:

@keithw: here is another version.

yuvrect.c seems to work
texrect.c still doesnt work

any hints?





OK, the final piece of the puzzle fell into place. Without the radeon docs you might hav had trouble find this -- basically, the radeon still expects texture rectangle texcoords to be in 0..1 range, rather than 0..width,0..height like the r200.


I haven't got the code running for this yet, but modifying the app to supply the texcoords the hardware expects gives a good image.

Keith

yes, its unbelievable... it works with texcoords 0...1 ;)

1) Do you have an idea how to make it work with the right texcoords?



I was thinking that this would be a fairly easy option:


a) Disable TCL for all rectangular texture operations
b) Insert a new stage to the swtcl pipeline, based on Mesa/src/tnl/t_vb_texmat.c, to perform a 1/w, 1/h scale to all texrect coordinates.


c) premultiply the texture matrix by a scaling matrix?

I wanted to keep things seperate -- but it does sound nice. It would need some new infrastructure - if it were to work with tcl fallbacks, then t_vb_texmat.c would have to use a premultiplied one also. Further, swrast expects "normal" 0..dimension texcoords, so it would have to be turned off during rasterization fallbacks.


It seems like it would require hooks into core mesa, just to deal with this one piece of hardware that works this way. Adding a new renderstage keeps it in the driver.

I could add a new renderstage *and* premultiply only the hw texture matrix (keeping hwtcl), but that's even more work.

Keith




------------------------------------------------------- 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

Reply via email to