From 6a143b84248d9b32b51238291647c7b8c02ab9b4 Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Thu, 27 May 2010 23:21:12 +0200 Subject: [PATCH] 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 --- src/gallium/drivers/r600/r600_context.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/r600_context.c b/src/gallium/drivers/r600/r600_context.c index 0d36641a8e2..0b04fa5fe94 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++; -- 2.30.2