[Mesa-dev] [PATCH 3/7] i965/fs: legalize [u]int64 to 32-bit data conversions in lower_d2x

Samuel Iglesias Gonsálvez siglesias at igalia.com
Wed Feb 8 14:58:12 UTC 2017


Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99660
---
 src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp b/src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp
index 9a8aabf8487..a2db1154615 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp
@@ -41,7 +41,9 @@ fs_visitor::lower_d2x()
           inst->dst.type != BRW_REGISTER_TYPE_UD)
          continue;
 
-      if (inst->src[0].type != BRW_REGISTER_TYPE_DF)
+      if (inst->src[0].type != BRW_REGISTER_TYPE_DF &&
+          inst->src[0].type != BRW_REGISTER_TYPE_UQ &&
+          inst->src[0].type != BRW_REGISTER_TYPE_Q)
          continue;
 
       assert(inst->dst.file == VGRF);
-- 
2.11.0



More information about the mesa-dev mailing list