freedreno/ir3: enable half precision for pre-fs texture fetch
authorHyunjun Ko <zzoon@igalia.com>
Thu, 24 Oct 2019 05:30:58 +0000 (05:30 +0000)
committerNeil Roberts <nroberts@igalia.com>
Wed, 20 Nov 2019 13:09:43 +0000 (14:09 +0100)
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_compiler_nir.c

index fd490a8dead1193e38b3e1b1deea1a5f0d224ef6..271e86522f52f277a132a62c273bb40c14d336e5 100644 (file)
@@ -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);