mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
zink: fix assigning _Bool to _Bool*
When building for C23 the compiler warns about assigning boolean to
a different type.
Change the code fixing the following error:
-----------------------------------------------------------------------
../src/gallium/drivers/zink/zink_query.c: In function ‘find_or_allocate_qp’:
../src/gallium/drivers/zink/zink_query.c:213:25: error: incompatible types when assigning to type ‘_Bool *’ from type ‘_Bool’
213 | vkq_needs_reset = false;
| ^~~~~
-----------------------------------------------------------------------
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Fixes: 92811d9a56 ("zink: use maint9 implicit query resets when available")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36326>
This commit is contained in:
parent
525513fd23
commit
5f843f6dd6
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ find_or_allocate_qp(struct zink_context *ctx, struct zink_query *q, unsigned idx
|
|||
pool_create.sType = VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO;
|
||||
if (screen->info.have_KHR_maintenance9) {
|
||||
pool_create.flags = VK_QUERY_POOL_CREATE_RESET_BIT_KHR;
|
||||
vkq_needs_reset = false;
|
||||
*vkq_needs_reset = false;
|
||||
}
|
||||
pool_create.queryType = vk_query_type;
|
||||
pool_create.queryCount = NUM_QUERIES;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue