i965/fs: generate fs programs also without any 8-width instructions
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 27 Nov 2013 12:32:41 +0000 (14:32 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 27 Dec 2013 09:58:36 +0000 (11:58 +0200)
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp

index 0cc574cf3846b1d7ea638140752aaf8d33fff7b9..2381fb0ad22b4a576dc7c81f66bbe2decee97dfd 100644 (file)
@@ -1809,8 +1809,12 @@ fs_generator::generate_assembly(exec_list *simd8_instructions,
                                 exec_list *simd16_instructions,
                                 unsigned *assembly_size)
 {
-   dispatch_width = 8;
-   generate_code(simd8_instructions);
+   assert(simd8_instructions || simd16_instructions);
+
+   if (simd8_instructions) {
+      dispatch_width = 8;
+      generate_code(simd8_instructions);
+   }
 
    if (simd16_instructions) {
       /* We have to do a compaction pass now, or the one at the end of