v3d: Fix configuration setup of mixed f32 and f16 render targets.

Fixes dEQP-GLES3.functional.fragment_out.random.26 and 6 others.
This commit is contained in:
Eric Anholt
2018-06-13 13:38:33 -07:00
parent 6784aa9870
commit d91e06a065

View File

@@ -1000,7 +1000,7 @@ emit_frag_end(struct v3d_compile *c)
struct qreg b = color[2];
struct qreg a = color[3];
if (c->fs_key->f32_color_rb) {
if (c->fs_key->f32_color_rb & (1 << rt)) {
conf |= TLB_TYPE_F32_COLOR;
conf |= ((num_components - 1) <<
TLB_VEC_SIZE_MINUS_1_SHIFT);