[Mesa-dev] [PATCH] r300/compiler: Prevent the fragmentation of TEX blocks in the pair scheduler.

Marek Olšák maraeo at gmail.com
Thu Jun 3 12:21:26 PDT 2010


On Thu, Jun 3, 2010 at 9:01 PM, Alex Deucher <alexdeucher at gmail.com> wrote:

>  The word is:
> Registers should be fully read before they are written so you can use
> the same register for the result of the read, but you cannot do
> dependant textures in one clause.
>

This matches what I've seen from shader disassembly in AMD RenderMonkey. One
of TEX blocks looked something like this:

TEX r3, r0, s0, 2D
TEX r0, r0, s1, 2D
TEX r6, r2, s0, 2D
TEX r2, r2, s1, 2D
TEX r1, r4, s0, 2D
TEX r4, r4, s1, 2D
...

The disassembler works with Direct3D9/HLSL shaders only.

-Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100603/c0f2f059/attachment.html>


More information about the mesa-dev mailing list