diff options
author | Hyunjun Ko <[email protected]> | 2019-10-24 05:30:58 +0000 |
---|---|---|
committer | Neil Roberts <[email protected]> | 2019-11-20 14:09:43 +0100 |
commit | 02f4c39b8d292431b5ecf09214672217c6ed9eaf (patch) | |
tree | 465400b95c352961e7eeca127a734b187b9d2fea /src/freedreno/ir3 | |
parent | 407f8c71d3f3687f2fd134c42e5d12921e1c083d (diff) |
freedreno/ir3: enable half precision for pre-fs texture fetch
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/ir3')
-rw-r--r-- | src/freedreno/ir3/ir3_compiler_nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |