Mesa (master): i965/fs: generate fs programs also without any 8-width instructions
Topi Pohjolainen
tpohjola at kemper.freedesktop.org
Fri Dec 27 10:01:18 UTC 2013
Module: Mesa
Branch: master
Commit: ca53704f4be2d1c8317512b96fbc9540d2856f98
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca53704f4be2d1c8317512b96fbc9540d2856f98
Author: Topi Pohjolainen <topi.pohjolainen at intel.com>
Date: Wed Nov 27 14:32:41 2013 +0200
i965/fs: generate fs programs also without any 8-width instructions
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 8 ++++++--
1 file 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 0cc574c..2381fb0 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
More information about the mesa-commit
mailing list