i965/disasm: align16 DF source regions have a width of 2

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Iago Toral Quiroga 2016-05-25 08:21:23 +02:00 committed by Samuel Iglesias Gonsálvez
parent c35fa7ac55
commit 611fe6b32f
1 changed files with 4 additions and 1 deletions

View 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;