diff options
author | Kenneth Graunke <[email protected]> | 2012-02-18 12:59:40 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-02-18 20:12:38 -0800 |
commit | 393b42240f22dbbfb4f089036319031ad36173f3 (patch) | |
tree | bc9caa56b97875ba3950900e567d62cabb805376 | |
parent | 0342ffba1fa0ad4a724ca2450af6fc78358f5956 (diff) |
i965: Fix GPU hangs in the dummy fragment shader.
The dummy FB write failed to specify EOT and a message length, causing
the GPU to hang. Now we can enjoy "everyone's favorite color" again.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index bf1da9d4588..f9b306457d1 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -1809,6 +1809,8 @@ fs_visitor::emit_dummy_fs() fs_inst *write; write = emit(FS_OPCODE_FB_WRITE, fs_reg(0), fs_reg(0)); write->base_mrf = 2; + write->mlen = 4; + write->eot = true; } /* The register location here is relative to the start of the URB |