Mesa (master): i965/vs: Fix the mlen of scratch read/write messages.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Oct 17 19:24:43 UTC 2012
Module: Mesa
Branch: master
Commit: e1a518e2b1490ff4afe2efc69aa64e193bfb1324
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1a518e2b1490ff4afe2efc69aa64e193bfb1324
Author: Eric Anholt <eric at anholt.net>
Date: Wed Oct 3 16:15:07 2012 -0700
i965/vs: Fix the mlen of scratch read/write messages.
These messages always have m0 = g0 and m1 = offset, and write has m2 = data.
Avoids regression in opt_compute_to_mrf() with a change to scratch writes to
set up the data as an MRF write in the IR.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 9fc7ec7..f54c49e 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -187,7 +187,7 @@ vec4_visitor::SCRATCH_READ(dst_reg dst, src_reg index)
inst = new(mem_ctx) vec4_instruction(this, VS_OPCODE_SCRATCH_READ,
dst, index);
inst->base_mrf = 14;
- inst->mlen = 1;
+ inst->mlen = 2;
return inst;
}
@@ -200,7 +200,7 @@ vec4_visitor::SCRATCH_WRITE(dst_reg dst, src_reg src, src_reg index)
inst = new(mem_ctx) vec4_instruction(this, VS_OPCODE_SCRATCH_WRITE,
dst, src, index);
inst->base_mrf = 13;
- inst->mlen = 2;
+ inst->mlen = 3;
return inst;
}
More information about the mesa-commit
mailing list