i965/disasm: align16 DF source regions have a width of 2
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 25 May 2016 06:21:23 +0000 (08:21 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:50 +0000 (11:26 +0100)
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_disasm.c

index 5930e446b190d01ef3479ca16d1ca141e7000f66..aaad47dc7f7624a6e6ffa0e0b015e32c1b1f657d 100644 (file)
@@ -942,7 +942,10 @@ src_da16(FILE *file,
       format(file, ".%d", 16 / reg_type_size[_reg_type]);
    string(file, "<");
    err |= control(file, "vert stride", vert_stride, _vert_stride, NULL);
-   string(file, ",4,1>");
+   if (reg_type_size[_reg_type] == 8)
+      string(file, ",2,1>");
+   else
+      string(file, ",4,1>");
    err |= src_swizzle(file, BRW_SWIZZLE4(swz_x, swz_y, swz_z, swz_w));
    err |= control(file, "src da16 reg type", reg_encoding, _reg_type, NULL);
    return err;