[Mesa-dev] [PATCH 15/95] i965/disasm: align16 DF source regions have a width of 2

Iago Toral Quiroga itoral at igalia.com
Tue Jul 19 10:40:12 UTC 2016


---
 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 d74d5d5..c8bdeab 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -918,7 +918,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