From 6dd0ad66dedc4cbd79574053f0b5023172935657 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Sun, 22 Sep 2019 22:03:22 -0700 Subject: lima/ppir: add NIR pass to split varying loads NIR may emit a single instrinsic to load several packed varyings, but that's suboptimal for Utgard PP for several reasons: - varyings that are used as sampler inputs can be passed using pipeline register with increased precision - we have small number of regs, so using a vec4 regs for storing two vec2 varyings increases reg pressure. Add NIR pass to split a single load into several loads and utilize it in lima. Reviewed-by: Qiang Yu Signed-off-by: Vasily Khoruzhick --- src/gallium/drivers/lima/Android.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/lima/Android.mk') diff --git a/src/gallium/drivers/lima/Android.mk b/src/gallium/drivers/lima/Android.mk index c09789ec022..9408e96bd7d 100644 --- a/src/gallium/drivers/lima/Android.mk +++ b/src/gallium/drivers/lima/Android.mk @@ -36,6 +36,7 @@ LOCAL_SRC_FILES := \ ir/gp/scheduler.c \ ir/lima_ir.h \ ir/lima_nir_lower_uniform_to_scalar.c \ + ir/lima_nir_split_load_input.c \ ir/pp/codegen.c \ ir/pp/codegen.h \ ir/pp/disasm.c \ -- cgit v1.2.3