From 48ddd2889e15aaf8ddb6dff5d8b6dc275f7f3f8d Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 16 Sep 2014 18:02:52 -0700 Subject: [PATCH] i965/fs: Use exec_size instead of force_uncompressed in dump_instruction Signed-off-by: Jason Ekstrand Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_fs.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 2f4ce5bd158..1487e664646 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -3082,7 +3082,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file) fprintf(file, ".f0.%d", inst->flag_subreg); } } - fprintf(file, " "); + fprintf(file, "(%d) ", inst->exec_size); switch (inst->dst.file) { @@ -3233,11 +3233,12 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file) fprintf(file, " "); - if (inst->force_uncompressed) - fprintf(file, "1sthalf "); - - if (inst->force_sechalf) - fprintf(file, "2ndhalf "); + if (dispatch_width == 16 && inst->exec_size == 8) { + if (inst->force_sechalf) + fprintf(file, "2ndhalf "); + else + fprintf(file, "1sthalf "); + } fprintf(file, "\n"); } -- 2.30.2