diff options
author | Rob Clark <[email protected]> | 2016-04-24 16:59:16 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-04-30 14:56:20 -0400 |
commit | 663c0e5155e9916b10163c102f0ece4eda5c3154 (patch) | |
tree | 6676d755d5c329c427b15363b13af7badc6c0ad5 /src/gallium/drivers/freedreno/a3xx | |
parent | 2578e3edcb83511d46427591343369b1bdfbcaf3 (diff) |
freedreno/ir3: use pipe_debug_callback for shader-db traces
For multi-threaded shader-db support.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_emit.h | 4 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_program.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_emit.h b/src/gallium/drivers/freedreno/a3xx/fd3_emit.h index 42dbfca9b97..17e1fef882f 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_emit.h +++ b/src/gallium/drivers/freedreno/a3xx/fd3_emit.h @@ -67,7 +67,7 @@ fd3_emit_get_vp(struct fd3_emit *emit) { if (!emit->vp) { struct fd3_shader_stateobj *so = emit->prog->vp; - emit->vp = ir3_shader_variant(so->shader, emit->key); + emit->vp = ir3_shader_variant(so->shader, emit->key, emit->debug); } return emit->vp; } @@ -82,7 +82,7 @@ fd3_emit_get_fp(struct fd3_emit *emit) emit->fp = &binning_fp; } else { struct fd3_shader_stateobj *so = emit->prog->fp; - emit->fp = ir3_shader_variant(so->shader, emit->key); + emit->fp = ir3_shader_variant(so->shader, emit->key, emit->debug); } } return emit->fp; diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_program.c b/src/gallium/drivers/freedreno/a3xx/fd3_program.c index 57e269cc21f..8152f8fcb9c 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_program.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_program.c @@ -50,9 +50,10 @@ static struct fd3_shader_stateobj * create_shader_stateobj(struct pipe_context *pctx, const struct pipe_shader_state *cso, enum shader_t type) { + struct fd_context *ctx = fd_context(pctx); + struct ir3_compiler *compiler = ctx->screen->compiler; struct fd3_shader_stateobj *so = CALLOC_STRUCT(fd3_shader_stateobj); - struct ir3_compiler *compiler = fd_context(pctx)->screen->compiler; - so->shader = ir3_shader_create(compiler, cso, type); + so->shader = ir3_shader_create(compiler, cso, type, &ctx->debug); return so; } |