i965/vec4: fix regs_read() for doubles
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 30 May 2016 11:20:31 +0000 (13:20 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:51 +0000 (11:26 +0100)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp

index 6f0f347522320be24d66266f162ae9f6f0f321a7..65438f702d776af3cad8ea9f8d68f429532ee43f 100644 (file)
@@ -228,8 +228,8 @@ vec4_instruction::size_read(unsigned arg) const
    case UNIFORM:
       return 4 * type_sz(src[arg].type);
    default:
-      /* XXX - Represent actual execution size and vertical stride. */
-      return 8 * type_sz(src[arg].type);
+      /* XXX - Represent actual vertical stride. */
+      return exec_size * type_sz(src[arg].type);
    }
 }