[Mesa-dev] [Bug 42930] [r300g, bisected] EVE online only shows black screen

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 15 11:54:48 PST 2011


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

--- Comment #9 from Ian Romanick <idr at freedesktop.org> 2011-11-15 11:54:48 PST ---
(In reply to comment #5)
> The r300 compiler looks for the constants which are used and allocates new
> locations for them.

I think we could achieve most this pretty easily in the linker.  After linking
and before uniform location assignment, we'd need a pass that:

 - Records all constant-index accesses to each array.

 - Records whether or not there was a non-constant-idnex access to each array.

When assigning uniform locations, arrays that had only constant-index accesses
would have only those accesses count against the uniform components limit. 
During code generation the map of accessed elements could be used to
automatically compact the array and remap indexes.

-- 
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 mesa-dev mailing list