From: Iago Toral Quiroga Date: Wed, 25 May 2016 06:21:23 +0000 (+0200) Subject: i965/disasm: align16 DF source regions have a width of 2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=611fe6b32fae09b3ae52afd4bdb7bae29eca99df;p=mesa.git i965/disasm: align16 DF source regions have a width of 2 Reviewed-by: Francisco Jerez Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 5930e446b19..aaad47dc7f7 100644 --- a/src/mesa/drivers/dri/i965/brw_disasm.c +++ b/src/mesa/drivers/dri/i965/brw_disasm.c @@ -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;