http://bugs.freedesktop.org/show_bug.cgi?id=9379





--- Comment #16 from Andrew Péteri <whysogr...@gmail.com>  2009-07-10 15:03:43 
PST ---
Created an attachment (id=27576)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=27576)
patch to add support for projective textures

Enables hardware-accelerated rendering of primitives that have vertices with
'q' texture coordinates used in projective texture mapping. It must be applied
after attachment 24949.

The patch is generally based on the "ptex hack" found in the S3 Savage sources
(which uses the standard vertex format, then shuffles values around to their
correct position just before sending the vertices to the DMA buffer), modified
to support two sets of texture coordinates; the vertex layout used by the r128,
along with the additional vertex format flag needed, were obtained from earlier
Mesa/DRI sources (eg. [1][2]). The performed calculations are essentially the
same in both cases (savage & r128).

Both patches apply against the mesa_7.4-0ubuntu3.1 source package and git
commit eb33c0ab8b3594f0b1d58534a13a26e3fb050cff, however only the former has
been tested.

(ps. I'm unsure which vertex size the SAREA structure should store, but I also
couldn't find any piece of code where that member gets referenced, so it may
not matter either way.)

[1]
http://www.koders.com/c/fid0D7829772F2499BEA37AC17768976CD64AD3459C.aspx?s=rhw2#L62

[2]
http://www.koders.com/c/fidDF4ACA3257B4F85D79E4E734EA089EC50D1DBB7F.aspx#L79


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to