zink: remove incorrect ASSERTED macro

The documentation for ASSERTED in macros.h says:

> Use ASSERTED to indicate that an identifier is unused outside of an `assert()`,
> so that assert-free builds don't get "unused variable" warnings.

We're using this variable outside of assert, so this shouldn't apply
here.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12594>
This commit is contained in:
Erik Faye-Lund 2021-08-26 11:07:38 +02:00 committed by Marge Bot
parent a3092bc719
commit 3e22fc27af

View File

@ -1865,7 +1865,7 @@ emit_load_const(struct ntv_context *ctx, nir_load_const_instr *load_const)
static void
emit_load_bo(struct ntv_context *ctx, nir_intrinsic_instr *intr)
{
ASSERTED nir_const_value *const_block_index = nir_src_as_const_value(intr->src[0]);
nir_const_value *const_block_index = nir_src_as_const_value(intr->src[0]);
bool ssbo = intr->intrinsic == nir_intrinsic_load_ssbo;
assert(const_block_index); // no dynamic indexing for now