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/a4xx | |
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/a4xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_emit.h | 4 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_program.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_emit.h b/src/gallium/drivers/freedreno/a4xx/fd4_emit.h index 41df3219116..a39697dafb4 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_emit.h +++ b/src/gallium/drivers/freedreno/a4xx/fd4_emit.h @@ -76,7 +76,7 @@ fd4_emit_get_vp(struct fd4_emit *emit) { if (!emit->vp) { struct fd4_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; } @@ -91,7 +91,7 @@ fd4_emit_get_fp(struct fd4_emit *emit) emit->fp = &binning_fp; } else { struct fd4_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/a4xx/fd4_program.c b/src/gallium/drivers/freedreno/a4xx/fd4_program.c index d782b94f848..4396383eef9 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_program.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_program.c @@ -50,9 +50,10 @@ static struct fd4_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 fd4_shader_stateobj *so = CALLOC_STRUCT(fd4_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; } |