mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 07:19:50 +00:00
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:
parent
a3092bc719
commit
3e22fc27af
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user