From: Hyunjun Ko Date: Thu, 24 Oct 2019 05:30:58 +0000 (+0000) Subject: freedreno/ir3: enable half precision for pre-fs texture fetch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02f4c39b8d292431b5ecf09214672217c6ed9eaf;p=mesa.git freedreno/ir3: enable half precision for pre-fs texture fetch Reviewed-by: Rob Clark --- 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);