Re: [Mesa-dev] [PATCH] ac/nir: don't put lod into args if it's zero.

2018-03-07 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Tue, Mar 6, 2018 at 10:26 PM, Dave Airlie wrote: > From: Dave Airlie > > If it's zero but put it in args we still end up consuming a > register for it. > > This fixes some spilling in the NIR paths in Dirt Rally that > isn't seen with TGSI. > > Signed-off-by:

Re: [Mesa-dev] [PATCH] ac/nir: don't put lod into args if it's zero.

2018-03-06 Thread Timothy Arceri
Reviewed-by: Timothy Arceri On 07/03/18 14:26, Dave Airlie wrote: From: Dave Airlie If it's zero but put it in args we still end up consuming a register for it. This fixes some spilling in the NIR paths in Dirt Rally that isn't seen with TGSI. Signed-off-by: Dave Airlie --- src/amd/commo

[Mesa-dev] [PATCH] ac/nir: don't put lod into args if it's zero.

2018-03-06 Thread Dave Airlie
From: Dave Airlie If it's zero but put it in args we still end up consuming a register for it. This fixes some spilling in the NIR paths in Dirt Rally that isn't seen with TGSI. Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions