mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
r600g: Fix Clang return-type build error.
Fix Clang return-type error introduced with commit
96f164f6f0 "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>
This commit is contained in:
parent
0c0ca55711
commit
382b1a36e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue