From 635131a238eb1efa075a6b422ac9add863422cd7 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 28 Dec 2017 15:29:04 -0800 Subject: broadcom/vc5: Don't emit component 3/4 F16 TLB writes for float/vec2. Fixes a simulator assertion failure on dEQP-GLES3.functional.fragment_out.array.fixed.r8_highp_float. --- src/broadcom/compiler/nir_to_vir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/broadcom') diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c index 394e20d2070..f998f716590 100644 --- a/src/broadcom/compiler/nir_to_vir.c +++ b/src/broadcom/compiler/nir_to_vir.c @@ -1214,7 +1214,8 @@ emit_frag_end(struct v3d_compile *c) vir_uniform_ui(c, conf); } - inst = vir_VFPACK_dest(c, vir_reg(QFILE_TLB, 0), b, a); + if (num_components >= 3) + inst = vir_VFPACK_dest(c, vir_reg(QFILE_TLB, 0), b, a); } break; } -- cgit v1.2.3