i965/fs: legalize [u]int64 to 32-bit data conversions in lower_d2x
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 8 Feb 2017 12:14:34 +0000 (13:14 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 9 Feb 2017 09:18:34 +0000 (10:18 +0100)
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99660
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp

index 9a8aabf84872771223496ecfd109fc486572cebf..a2db1154615add6b71bd54dbc5e6c0c43f0872c1 100644 (file)
@@ -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);