[Openchrome-users] Texture Units
Thomas Hellström
thomas
Mon Feb 26 15:43:31 PST 2007
Hi!
Miguel Marte wrote:
>does any one know how the drivers lock the texture units? Single
>texture apps work fine, its the multi texture or having 2 programs
>trying to use them that locks the card.
>
>
>
Glad to see that someone embraces this driver, which is in dire need of
attention.
There is no explicit locking of texture units, but the usage of the
hardware is
regulated in the following manner:
1) To program the hardware using the PCI or AGP command stream the
client takes the hardware lock.
2) If the ctxOwner field of the sarea is not the current context,
somebody else has invalidated the 3D state, and it needs to be reloaded.
3) If the context touches the 3D state, the ctxOwner field of the sarea
should be set to the current context. The application then owns the 3D
engine and can do what it wants with it.
What may happen is that an application may not resetting to the correct
number of used textures, and the vertex data becomes interpreted with
the wrong number of textures set.
/Thomas
>_______________________________________________
>openchrome-users mailing list
>openchrome-users at openchrome.org
>http://wiki.openchrome.org/mailman/listinfo/openchrome-users
>Main page:
>http://www.openchrome.org
>Wiki:
>http://wiki.openchrome.org
>User Forum:
>http://wiki.openchrome.org/tikiwiki/tiki-view_forum.php?forumId=1
>
>
>
>
More information about the Openchrome-users
mailing list