[Mesa-dev] [PATCH v2 014/103] i965/disasm: align16 DF source regions have a width of 2
Iago Toral Quiroga
itoral at igalia.com
Tue Oct 11 09:01:18 UTC 2016
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
---
src/mesa/drivers/dri/i965/brw_disasm.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index 5e51be7..1d2a4d2 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;
--
2.7.4
More information about the mesa-dev
mailing list