summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2016-05-25 08:21:23 +0200
committerSamuel Iglesias Gonsálvez <[email protected]>2017-01-03 11:26:50 +0100
commit611fe6b32fae09b3ae52afd4bdb7bae29eca99df (patch)
tree13b5a4224bda1dcaf84aa641265bb76910c8528d /src
parentc35fa7ac5507a64943aa518b2dac8bddfdc9e14b (diff)
i965/disasm: align16 DF source regions have a width of 2
Reviewed-by: Francisco Jerez <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_disasm.c5
1 files changed, 4 insertions, 1 deletions
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;