Module: Mesa
Branch: master
Commit: 6a143b84248d9b32b51238291647c7b8c02ab9b4
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a143b84248d9b32b51238291647c7b8c02ab9b4

Author: Jerome Glisse <[email protected]>
Date:   Thu May 27 23:21:12 2010 +0200

r600g: disable rendering

Disable rendering to avoid GPU lockup.
Use radeondb to debug shader compiler :
radeondb -c gallium.bof
radeondb -s gallium.json
Will print shader generated, best is to use fp demos to test
the compiler.

Signed-off-by: Jerome Glisse <[email protected]>

---

 src/gallium/drivers/r600/r600_context.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_context.c 
b/src/gallium/drivers/r600/r600_context.c
index 0d36641..0b04fa5 100644
--- a/src/gallium/drivers/r600/r600_context.c
+++ b/src/gallium/drivers/r600/r600_context.c
@@ -46,13 +46,18 @@ static void r600_flush(struct pipe_context *ctx, unsigned 
flags,
 {
        struct r600_context *rctx = (struct r600_context*)ctx;
        struct r600_screen *rscreen = (struct r600_screen*)ctx->screen;
-static int dc = 0;
+       static int dc = 0;
 
        if (radeon_ctx_pm4(rctx->ctx))
                return;
+       /* FIXME dumping should be removed once shader support instructions
+        * without throwing bad code
+        */
        if (!dc)
-           radeon_ctx_dump_bof(rctx->ctx, "gallium.bof");
+               radeon_ctx_dump_bof(rctx->ctx, "gallium.bof");
+#if 0
        radeon_ctx_submit(rctx->ctx);
+#endif
        rctx->ctx = radeon_ctx_decref(rctx->ctx);
        rctx->ctx = radeon_ctx(rscreen->rw);
        dc++;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to