diff options
author | Brian Paul <[email protected]> | 2014-03-24 17:20:54 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-03-26 10:31:13 -0600 |
commit | 8bbc84d1e50643cecaf7fc49b62b57e6129e553f (patch) | |
tree | 2397acd150b8798cb96b66c17c577dba44c83873 /src/gallium/drivers | |
parent | 488d4c482637af4b0ab25a3b0e664795164fe819 (diff) |
svga: add some debug_printf() calls in the query object code
To help debug failures.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_query.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_query.c b/src/gallium/drivers/svga/svga_pipe_query.c index 61085c463e5..cdf463c1781 100644 --- a/src/gallium/drivers/svga/svga_pipe_query.c +++ b/src/gallium/drivers/svga/svga_pipe_query.c @@ -94,13 +94,17 @@ svga_create_query( struct pipe_context *pipe, unsigned query_type ) sq->hwbuf = svga_winsys_buffer_create(svga, 1, SVGA_BUFFER_USAGE_PINNED, sizeof *sq->queryResult); - if (!sq->hwbuf) + if (!sq->hwbuf) { + debug_printf("svga: failed to alloc query object!\n"); goto no_hwbuf; + } sq->queryResult = (SVGA3dQueryResult *) sws->buffer_map(sws, sq->hwbuf, PIPE_TRANSFER_WRITE); - if (!sq->queryResult) + if (!sq->queryResult) { + debug_printf("svga: failed to map query object!\n"); goto no_query_result; + } sq->queryResult->totalSize = sizeof *sq->queryResult; sq->queryResult->state = SVGA3D_QUERYSTATE_NEW; |