intel/compiler/test: Set devinfo->gen = 7
authorMatt Turner <mattst88@gmail.com>
Mon, 11 Feb 2019 20:23:16 +0000 (12:23 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 15 Feb 2019 19:11:02 +0000 (11:11 -0800)
We emit an FBL instruction which only exists since Gen7. This prevents
the test from segfaulting when run with TEST_DEBUG=1.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/intel/compiler/test_fs_cmod_propagation.cpp

index 659fbb2d1bc6b744ff0a3da283a8ca328b2a0150..38bd0de8fc913587ba8a540abdf3cc1dc649d4f9 100644 (file)
@@ -65,7 +65,7 @@ void cmod_propagation_test::SetUp()
 
    v = new cmod_propagation_fs_visitor(compiler, prog_data, shader);
 
-   devinfo->gen = 4;
+   devinfo->gen = 7;
 }
 
 static fs_inst *