From: "Xiang, Haihao" <haihao.xiang@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 03/10] always set destination horiz stride for Align16 to 1 on Sandybridge.
Date: Sat, 9 Oct 2010 15:32:23 +0800 [thread overview]
Message-ID: <1286609550-16083-4-git-send-email-haihao.xiang@intel.com> (raw)
In-Reply-To: <1286609550-16083-1-git-send-email-haihao.xiang@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
---
src/brw_structs.h | 4 ++--
src/gram.y | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/brw_structs.h b/src/brw_structs.h
index ba20547..32a52df 100644
--- a/src/brw_structs.h
+++ b/src/brw_structs.h
@@ -1102,7 +1102,7 @@ struct brw_instruction
GLuint dest_writemask:4;
GLuint dest_subreg_nr:1;
GLuint dest_reg_nr:8;
- GLuint pad1:2;
+ GLuint dest_horiz_stride:2;
GLuint dest_address_mode:1;
} da16;
@@ -1116,7 +1116,7 @@ struct brw_instruction
GLuint dest_writemask:4;
GLint dest_indirect_offset:6;
GLuint dest_subreg_nr:3;
- GLuint pad1:2;
+ GLuint dest_horiz_stride:2;
GLuint dest_address_mode:1;
} ia16;
} bits1;
diff --git a/src/gram.y b/src/gram.y
index 438559a..f57e97c 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -1668,6 +1668,7 @@ int set_instruction_dest(struct brw_instruction *instr,
instr->bits1.da16.dest_subreg_nr = dest->subreg_nr;
instr->bits1.da16.dest_reg_nr = dest->reg_nr;
instr->bits1.da16.dest_address_mode = dest->address_mode;
+ instr->bits1.da16.dest_horiz_stride = 1;
instr->bits1.da16.dest_writemask = dest->writemask;
} else if (instr->header.access_mode == BRW_ALIGN_1) {
instr->bits1.ia1.dest_reg_file = dest->reg_file;
@@ -1687,6 +1688,7 @@ int set_instruction_dest(struct brw_instruction *instr,
instr->bits1.ia16.dest_subreg_nr = dest->address_subreg_nr;
instr->bits1.ia16.dest_writemask = dest->writemask;
instr->bits1.ia16.dest_indirect_offset = dest->indirect_offset;
+ instr->bits1.ia16.dest_horiz_stride = 1;
instr->bits1.ia16.dest_address_mode = dest->address_mode;
}
--
1.7.0.4
next prev parent reply other threads:[~2010-10-09 7:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-09 7:32 support for Sandybridge in GFX assembler Xiang, Haihao
2010-10-09 7:32 ` [PATCH 01/10] add -g 6 for Sandybridge Xiang, Haihao
2010-10-09 7:32 ` [PATCH 02/10] fix jump count " Xiang, Haihao
2010-10-09 7:32 ` Xiang, Haihao [this message]
2010-10-09 7:32 ` [PATCH 04/10] add AccWrCtrl flag on Sandybridge Xiang, Haihao
2010-10-09 7:32 ` [PATCH 05/10] fix send instruction " Xiang, Haihao
2010-10-09 7:32 ` [PATCH 06/10] add support for data port write " Xiang, Haihao
2010-10-09 7:32 ` [PATCH 07/10] add support for data port read " Xiang, Haihao
2010-10-09 7:32 ` [PATCH 08/10] sampler, urb write, null and gateway on Sandybridge are same as Ironlake Xiang, Haihao
2010-10-09 7:32 ` [PATCH 09/10] print error message when using math function on Sandybridge Xiang, Haihao
2010-10-09 7:32 ` [PATCH 10/10] no compression flag " Xiang, Haihao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1286609550-16083-4-git-send-email-haihao.xiang@intel.com \
--to=haihao.xiang@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.