[Mesa-dev] [PATCH] linker: Reject shaders that use too many varyings

Christoph Bumiller e0425955 at student.tuwien.ac.at
Thu Jun 23 08:25:37 PDT 2011


On 23.06.2011 04:12, Roland Scheidegger wrote:
> Am 21.06.2011 20:59, schrieb Sven Arvidsson:
>> This change broke a whole lot of stuff on r600g, for example Unigine
>> Heaven:
>>
>> 	shader uses too many varying components (36 > 32)
> It looks like the r600g driver claims to only support 10 varyings, which
> the state tracker reduces to 8 (as it subtracts the supposedly included
> color varyings).
> At first sight I can't quite see why it's limited to 10, all r600 chips
> should be able to handle 32 (dx10 requirement) but of course the driver
Just a side note, the requirement of 32 outputs (and thus FP inputs)
only applies to geometry shaders, vertex shaders are allowed to be
limited to 16 (and that's the case on nv50).

> might not (mesa itself is limited to 16 it seems). If it worked just
> fine before that suggests it indeed works just fine with more...
> Someone more familiar with the driver should be able to tell if it's
> safe to increase the limit to 32 (the state tracker will cap it to 16).
>
> Roland
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list