mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
zink: Fix unused var warnings in release build from assertions.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6462>
This commit is contained in:
parent
ca73c3bc59
commit
ab6a09f25b
2 changed files with 2 additions and 2 deletions
|
|
@ -1545,7 +1545,7 @@ emit_load_const(struct ntv_context *ctx, nir_load_const_instr *load_const)
|
|||
static void
|
||||
emit_load_ubo(struct ntv_context *ctx, nir_intrinsic_instr *intr)
|
||||
{
|
||||
nir_const_value *const_block_index = nir_src_as_const_value(intr->src[0]);
|
||||
ASSERTED nir_const_value *const_block_index = nir_src_as_const_value(intr->src[0]);
|
||||
assert(const_block_index); // no dynamic indexing for now
|
||||
assert(const_block_index->u32 == 0); // we only support the default UBO for now
|
||||
|
||||
|
|
|
|||
|
|
@ -774,7 +774,7 @@ load_device_extensions(struct zink_screen *screen)
|
|||
screen->vk_GetPhysicalDeviceCalibrateableTimeDomainsEXT(screen->pdev, &num_domains, domains);
|
||||
|
||||
/* VK_TIME_DOMAIN_DEVICE_EXT is used for the ctx->get_timestamp hook and is the only one we really need */
|
||||
bool have_device_time = false;
|
||||
ASSERTED bool have_device_time = false;
|
||||
for (unsigned i = 0; i < num_domains; i++) {
|
||||
if (domains[i] == VK_TIME_DOMAIN_DEVICE_EXT) {
|
||||
have_device_time = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue