> I don't think anybody has tried hooking it up - so far the primary
> purpose of the svga gallium driver has been GL support, but thinking
> about it you're probably right.

I'm a bit confused about this: I was under the impression that VMware
Tools for Windows used your DirectX state tracker and a WGL version of
Mesa, talking to the svga Gallium driver.
How does it actually work?
What do you normally use the DirectX 9 state tracker with?

> The details of the closed code aren't terribly important as they could
> always be changed.
Sure, but it currently is the only Gallium user that supports the SM3
model and thus the only one that really needs arbitrary semantic
indices, and puts constraints on them.

>> The correct value in this case seems to be 219 = 14 * 16 SM3 semantics
>> - 5 for COLOR0, COLOR1, PSIZE0, POSITION0, FOG0 which have specific
>> TGSI semantics which they need to mapped to/from.
>
> Agree, though I'd opt for 255 as a round number.

The problem with this is that you only have 14 SM3 semantics with 16
indices each, so you can't map 256 generic indices into the VMware
interface, or directly into an SM3 shader.
You only have 14 * 16 minus the ones used for non-GENERIC semantics
(the one mentioned above).
And of course, if you choose a smaller number, you can't map SM3
_into_ Gallium, so you need to choose the exact number required for
SM3.

Tying Gallium in this way to SM3 is surely a bit ugly, but it's just a
constant, and I don't see any other way to implement SM3 without doing
linkage in software in the r600 and svga drivers and/or in SM3 state
trackers.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to