r600g: Fix Clang return-type build error.
authorVinson Lee <vlee@freedesktop.org>
Wed, 6 May 2015 17:09:38 +0000 (10:09 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 6 May 2015 19:21:34 +0000 (12:21 -0700)
Fix Clang return-type error introduced with commit
96f164f6f047833091eb98a73aa80c31dc94f962 "gallium: make
pipe_context::begin_query return a boolean".

  CC       r600_query.lo
r600_query.c:443:3: error: non-void function 'r600_begin_query' should return a value [-Wreturn-type]
                return;
                ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeon/r600_query.c

index 28a814a1b879c8bdef2ec08ef95a58c54251b52a..71f4a1522f998e27470c4a2b93912d7f38e7852a 100644 (file)
@@ -440,7 +440,7 @@ static boolean r600_begin_query(struct pipe_context *ctx,
        /* Non-GPU queries. */
        switch (rquery->type) {
        case PIPE_QUERY_TIMESTAMP_DISJOINT:
-               return;
+               return true;
        case R600_QUERY_DRAW_CALLS:
                rquery->begin_result = rctx->num_draw_calls;
                return true;