[Mesa-dev] [PATCH 0/5] Gallium support for TXF and TXL with level = 0

Ilia Mirkin imirkin at alum.mit.edu
Tue Mar 7 12:38:28 UTC 2017


Why can't the compiler perform this opt? At least we do that in nouveau...

On Mar 7, 2017 7:33 AM, "Marek Olšák" <maraeo at gmail.com> wrote:

> Hi,
>
> These new TGSI opcodes are for better code generation in drivers. If you
> know the mipmap level or LOD is 0, you don't have to pass 0 to texture
> instructions on hardware that has dedicated instructions for level-zero
> fetches. This saves a temporary register that is usually required for
> the level or LOD parameter.
>
> This change surprisingly reduces VGPR register spilling for DiRT Showdown
> on radeonsi, but that doesn't seem to have a visible effect on performance.
> We can't make this improvement at the LLVM level though.
>
> Note that TXF with an MSAA target and TG4 already imply level = 0.
>
> Please review.
>
> Marek
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170307/c1430ff7/attachment.html>


More information about the mesa-dev mailing list