intel/compiler: Don't use opt_sampler_eot() optimization on gen10+
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 27 Jun 2017 22:16:35 +0000 (15:16 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 12 Jul 2017 18:27:31 +0000 (11:27 -0700)
This optimization has been removed on gen10+.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/compiler/brw_fs.cpp

index 43b6e3420432b81c82d312df877095153cd5de03..a2a99b7209634ce41459ffeca3309a86b8f6a670 100644 (file)
@@ -2444,7 +2444,7 @@ fs_visitor::opt_sampler_eot()
    if (stage != MESA_SHADER_FRAGMENT)
       return false;
 
-   if (devinfo->gen < 9 && !devinfo->is_cherryview)
+   if (devinfo->gen != 9 && !devinfo->is_cherryview)
       return false;
 
    /* FINISHME: It should be possible to implement this optimization when there