diff options
author | Tom Stellard <[email protected]> | 2012-07-11 17:46:59 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-07-11 17:46:59 +0000 |
commit | d36499aa62f42192356fd9e34009905ae0e9e6c8 (patch) | |
tree | c453691039a3c484799981f91cb6b7819399042b /src/gallium/drivers/r600/evergreen_compute.c | |
parent | f9b3e257d19587f4b9fae31610df857b10d69d1b (diff) |
r600g/compute: Add more debugging output
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_compute.c')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_compute.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index 40200ae21de..0d3c9f33651 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -106,6 +106,8 @@ void *evergreen_create_compute_state( const struct pipe_llvm_program_header * header; const unsigned char * code; + COMPUTE_DBG("*** evergreen_create_compute_state\n"); + header = cso->prog; code = cso->prog + sizeof(struct pipe_llvm_program_header); #endif @@ -145,6 +147,8 @@ static void evergreen_bind_compute_state(struct pipe_context *ctx_, void *state) { struct r600_context *ctx = (struct r600_context *)ctx_; + COMPUTE_DBG("*** evergreen_bind_compute_state\n"); + ctx->cs_shader = (struct r600_pipe_compute *)state; if (!ctx->cs_shader->shader_code_bo) { @@ -444,6 +448,10 @@ static void evergreen_set_compute_resources(struct pipe_context * ctx_, { struct r600_context *ctx = (struct r600_context *)ctx_; struct r600_surface **resources = (struct r600_surface **)surfaces; + + COMPUTE_DBG("*** evergreen_set_compute_resources: start = %u count = %u\n", + start, count); + for (int i = 0; i < count; i++) { if (resources[i]) { struct r600_resource_global *buffer = @@ -513,6 +521,9 @@ static void evergreen_set_global_binding( struct r600_resource_global **buffers = (struct r600_resource_global **)resources; + COMPUTE_DBG("*** evergreen_set_global_binding first = %u n = %u\n", + first, n); + if (!resources) { /* XXX: Unset */ return; @@ -719,6 +730,10 @@ struct pipe_resource *r600_compute_global_buffer_create( CALLOC(sizeof(struct r600_resource_global), 1); struct r600_screen* rscreen = (struct r600_screen*)screen; + COMPUTE_DBG("*** r600_compute_global_buffer_create\n"); + COMPUTE_DBG("width = %u array_size = %u\n", templ->width0, + templ->array_size); + result->base.b.vtbl = &r600_global_buffer_vtbl; result->base.b.b.screen = screen; result->base.b.b = *templ; |