i965/fs: set execution size to 8 with simd8 ddy instruction
authorTapani Pälli <tapani.palli@intel.com>
Tue, 12 May 2015 11:24:08 +0000 (14:24 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 13 May 2015 06:08:47 +0000 (09:08 +0300)
Commit dd5c825 changed the way how execution size for instructions
get set. Previously it was based on destination register width, now
it is set explicitly when emitting instructions.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90258

src/mesa/drivers/dri/i965/brw_fs_generator.cpp

index a99b7f75b266ca3083b793545f112548e4f48b68..b6b0d0523a083f71af6a0f030343c89164373ce1 100644 (file)
@@ -941,6 +941,7 @@ fs_generator::generate_ddy(enum opcode opcode,
       brw_push_insn_state(p);
       brw_set_default_access_mode(p, BRW_ALIGN_16);
       if (unroll_to_simd8) {
+         brw_set_default_exec_size(p, BRW_EXECUTE_8);
          brw_set_default_compression_control(p, BRW_COMPRESSION_NONE);
          if (negate_value) {
             brw_ADD(p, firsthalf(dst), firsthalf(src1), negate(firsthalf(src0)));