summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTopi Pohjolainen <topi.pohjolainen@intel.com>2013-11-27 14:32:41 +0200
committerTopi Pohjolainen <topi.pohjolainen@intel.com>2013-12-27 11:58:36 +0200
commitca53704f4be2d1c8317512b96fbc9540d2856f98 (patch)
tree99cbdb83d5b307a53e6f88ae7034b836febc4949 /src
parent8ab47b435319c05521bdfced6da6ce72850a2dd7 (diff)
i965/fs: generate fs programs also without any 8-width instructions
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_generator.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index 0cc574cf38..2381fb0ad2 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -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