diff options
author | Jerome Glisse <[email protected]> | 2010-05-27 23:21:12 +0200 |
---|---|---|
committer | Jerome Glisse <[email protected]> | 2010-05-27 23:24:26 +0200 |
commit | 6a143b84248d9b32b51238291647c7b8c02ab9b4 (patch) | |
tree | 32c4631af4fd966ac9657ca4fac90b2516b9d526 /src/gallium/drivers/r600 | |
parent | 9e8a6f801d360f85cc7bb53b85f15129b07b26da (diff) |
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]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | 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 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++; |