mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 08:50:25 +01:00
i965: support destination horiz strides in align1 access mode.
This is required for scatter writes in destination regions to work.
This commit is contained in:
parent
963071ffea
commit
58dc8b7db5
2 changed files with 3 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ struct brw_reg
|
|||
GLuint abs:1; /* source only */
|
||||
GLuint vstride:4; /* source only */
|
||||
GLuint width:3; /* src only, align1 only */
|
||||
GLuint hstride:2; /* src only, align1 only */
|
||||
GLuint hstride:2; /* align1 only */
|
||||
GLuint address_mode:1; /* relative addressing, hopefully! */
|
||||
GLuint pad0:1;
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ static void brw_set_dest( struct brw_instruction *insn,
|
|||
|
||||
if (insn->header.access_mode == BRW_ALIGN_1) {
|
||||
insn->bits1.da1.dest_subreg_nr = dest.subnr;
|
||||
insn->bits1.da1.dest_horiz_stride = BRW_HORIZONTAL_STRIDE_1;
|
||||
insn->bits1.da1.dest_horiz_stride = dest.hstride;
|
||||
}
|
||||
else {
|
||||
insn->bits1.da16.dest_subreg_nr = dest.subnr / 16;
|
||||
|
|
@ -78,7 +78,7 @@ static void brw_set_dest( struct brw_instruction *insn,
|
|||
*/
|
||||
if (insn->header.access_mode == BRW_ALIGN_1) {
|
||||
insn->bits1.ia1.dest_indirect_offset = dest.dw1.bits.indirect_offset;
|
||||
insn->bits1.ia1.dest_horiz_stride = BRW_HORIZONTAL_STRIDE_1;
|
||||
insn->bits1.ia1.dest_horiz_stride = dest.hstride;
|
||||
}
|
||||
else {
|
||||
insn->bits1.ia16.dest_indirect_offset = dest.dw1.bits.indirect_offset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue