pan/bi: Set BI_ROUNDMODE for BI_CONVERT
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 13 Apr 2020 19:55:45 +0000 (15:55 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Apr 2020 22:32:40 +0000 (22:32 +0000)
It's rarely used in GL but converts do have roundmodes.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4539>

src/panfrost/bifrost/bi_tables.c

index 7e9c90327f1477270e4eb91a8f6a05c04875202d..349521b4b4d0d63f1effead25abc4a64a1c3949e 100644 (file)
@@ -34,7 +34,7 @@ unsigned bi_class_props[BI_NUM_CLASSES] = {
         [BI_BLEND]             = BI_SCHED_HI_LATENCY | BI_SCHED_ADD | BI_VECTOR | BI_DATA_REG_SRC,
         [BI_BITWISE]           = BI_GENERIC | BI_SCHED_ALL,
         [BI_COMBINE]           = 0,
-        [BI_CONVERT]           = BI_SCHED_ALL | BI_SWIZZLABLE,
+        [BI_CONVERT]           = BI_SCHED_ALL | BI_SWIZZLABLE | BI_ROUNDMODE,
         [BI_CSEL]              = BI_SCHED_FMA,
         [BI_DISCARD]           = BI_SCHED_HI_LATENCY | BI_SCHED_ADD,
         [BI_FMA]               = BI_ROUNDMODE | BI_SCHED_FMA | BI_MODS,