intel/compiler: Request bitfield_reverse lowering on pre-Gen7 hardware
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 26 Aug 2019 20:33:06 +0000 (13:33 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Aug 2019 18:39:29 +0000 (11:39 -0700)
See the previous commit for the explanation of the Fixes tag.

Hurts 21 shaders in shader-db.  All of the hurt shaders are in Unreal
Engine 4 tech demos.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Fixes: 7afa26d4e39 ("nir: Add lowering for nir_op_bitfield_reverse.")
src/intel/compiler/brw_compiler.c

index 7ceeb14c70f84a79a1b68ce9aab8f741d1b88d43..c04264cba323f9f7de9d2063eb23dd9671eacae7 100644 (file)
@@ -187,6 +187,7 @@ brw_compiler_create(void *mem_ctx, const struct gen_device_info *devinfo)
       nir_options->lower_flrp32 = devinfo->gen < 6 || devinfo->gen >= 11;
 
       nir_options->lower_rotate = devinfo->gen < 11;
+      nir_options->lower_bitfield_reverse = devinfo->gen < 7;
 
       nir_options->lower_int64_options = int64_options;
       nir_options->lower_doubles_options = fp64_options;