From: Eric Anholt Date: Thu, 28 Dec 2017 23:29:04 +0000 (-0800) Subject: broadcom/vc5: Don't emit component 3/4 F16 TLB writes for float/vec2. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=635131a238eb1efa075a6b422ac9add863422cd7;p=mesa.git 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. --- 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; }