From 02f4c39b8d292431b5ecf09214672217c6ed9eaf Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Thu, 24 Oct 2019 05:30:58 +0000 Subject: freedreno/ir3: enable half precision for pre-fs texture fetch Reviewed-by: Rob Clark --- src/freedreno/ir3/ir3_compiler_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/freedreno/ir3') diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index fd490a8dead..271e86522f5 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -3203,7 +3203,7 @@ collect_tex_prefetches(struct ir3_context *ctx, struct ir3 *ir) MAX2(ctx->so->total_in, instr->prefetch.input_offset + 2); /* Disable half precision until supported. */ - fetch->half_precision = 0x0; + fetch->half_precision = !!(instr->regs[0]->flags & IR3_REG_HALF); /* Remove the prefetch placeholder instruction: */ list_delinit(&instr->node); -- cgit v1.2.3