Mesa (7.10): i965: use align1 access mode for instructions with execSize= 1 in VS

Haihao Xiang haihao at kemper.freedesktop.org
Mon Dec 27 00:58:53 UTC 2010


Module: Mesa
Branch: 7.10
Commit: 1988cba847386f5e03703137136c4fee08318ba2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1988cba847386f5e03703137136c4fee08318ba2

Author: Xiang, Haihao <haihao.xiang at intel.com>
Date:   Fri Dec 24 09:34:50 2010 +0800

i965: use align1 access mode for instructions with execSize=1 in VS

All operands must be 16-bytes aligned in aligh16 mode. This fixes l_xxx.c
in oglconform.
(cherry picked from commit dc987adc9f5f9f851be124985fa6bbcdbfa4a7a5)

---

 src/mesa/drivers/dri/i965/brw_eu_emit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index c01e752..ad6eb85 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -1723,6 +1723,7 @@ void brw_dp_READ_4_vs(struct brw_compile *p,
 
    /* Setup MRF[1] with location/offset into const buffer */
    brw_push_insn_state(p);
+   brw_set_access_mode(p, BRW_ALIGN_1);
    brw_set_compression_control(p, BRW_COMPRESSION_NONE);
    brw_set_mask_control(p, BRW_MASK_DISABLE);
    brw_set_predicate_control(p, BRW_PREDICATE_NONE);
@@ -1766,6 +1767,7 @@ void brw_dp_READ_4_vs_relative(struct brw_compile *p,
 
    /* Setup MRF[1] with offset into const buffer */
    brw_push_insn_state(p);
+   brw_set_access_mode(p, BRW_ALIGN_1);
    brw_set_compression_control(p, BRW_COMPRESSION_NONE);
    brw_set_mask_control(p, BRW_MASK_DISABLE);
    brw_set_predicate_control(p, BRW_PREDICATE_NONE);




More information about the mesa-commit mailing list