[Bug 29137] [r300g] troubles with wine and "r300: Max size of the constant buffer is 256*4 floats."

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 20 21:59:33 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29137

--- Comment #12 from Marek Olšák <maraeo at gmail.com> 2010-08-20 21:59:33 PDT ---
Henri,

I was thinking about this issue and realized that the way you allocate constant
space in wine is wrong. The problem is you create one large array "uniform vec4
VC[256]". If this array is addressed indirectly, that is using e.g.
VC[index+20] where "index" cannot be evaluated at compile time, we must assume
*any* element in the array may potentially be used and therefore we cannot
eliminate unused elements, because there appears to be none.

We can do the optimization if there is no indirect addressing, but we cannot do
this for all cases and say "it's fixed once and for all".

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list