Mesa (master): freedreno/ir3: enable half precision for pre-fs texture fetch

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 20 14:38:28 UTC 2019


Module: Mesa
Branch: master
Commit: 02f4c39b8d292431b5ecf09214672217c6ed9eaf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=02f4c39b8d292431b5ecf09214672217c6ed9eaf

Author: Hyunjun Ko <zzoon at igalia.com>
Date:   Thu Oct 24 05:30:58 2019 +0000

freedreno/ir3: enable half precision for pre-fs texture fetch

Reviewed-by: Rob Clark <robdclark at gmail.com>

---

 src/freedreno/ir3/ir3_compiler_nir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);




More information about the mesa-commit mailing list