diff options
author | Brian Paul <brianp@vmware.com> | 2009-04-16 11:08:12 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-04-16 11:08:23 -0600 |
commit | 33b865f70dc1461b040c9c436ec8e5a8171f00e7 (patch) | |
tree | 86124a9dbf488abc206c21960d1a8b1cf238572d | |
parent | a25632d890bcc769e2d39650e3dfe6ee49393e54 (diff) |
i965: disable using immediate values for MOV instructions
For some reason, MOV instructions using immediate src values don't seem
to work reliably on the GLSL path. Disable them for now (falling back to
const buffer reads). This fixes a bunch of glean glsl1 failures.
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_glsl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c index 62fa573b37..634648ad5b 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c +++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c @@ -527,7 +527,9 @@ static void emit_mov( struct brw_wm_compile *c, if (mask & (1<<i)) { struct brw_reg src, dst; dst = get_dst_reg(c, inst, i); - src = get_src_reg_imm(c, inst, 0, i); + /* XXX some moves from immediate value don't work reliably!!! */ + /*src = get_src_reg_imm(c, inst, 0, i);*/ + src = get_src_reg(c, inst, 0, i); brw_MOV(p, dst, src); } } |