summaryrefslogtreecommitdiffstats
path: root/src/broadcom/qpu/qpu_pack.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-02-04 17:15:36 -0800
committerEric Anholt <[email protected]>2019-02-05 15:45:23 -0800
commite5c6938590e5e495ce4f3f07dbdd53ca67297462 (patch)
tree991e132c1331c8c82fec7b8af4d7a67430160728 /src/broadcom/qpu/qpu_pack.c
parent1a4170952d580e2d16b19b3babc3e364519a3ac3 (diff)
v3d: Fix input packing of .l for rounding/fdx/fdy.
Avoids a regression in dEQP-GLES3.functional.shaders.derivate.fwidth.texture.* once we start copy-propagating more input packs.
Diffstat (limited to 'src/broadcom/qpu/qpu_pack.c')
-rw-r--r--src/broadcom/qpu/qpu_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/broadcom/qpu/qpu_pack.c b/src/broadcom/qpu/qpu_pack.c
index b4d1edf3cef..516b0cf538a 100644
--- a/src/broadcom/qpu/qpu_pack.c
+++ b/src/broadcom/qpu/qpu_pack.c
@@ -1095,7 +1095,7 @@ v3d_qpu_add_pack(const struct v3d_device_info *devinfo,
}
if (packed == 0)
return false;
- opcode |= packed << 2;
+ opcode = (opcode & ~(1 << 2)) | packed << 2;
break;
}