mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 11:40:10 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -1865,7 +1865,7 @@ emit_load_const(struct ntv_context *ctx, nir_load_const_instr *load_const)
|
||||||
static void
|
static void
|
||||||
emit_load_bo(struct ntv_context *ctx, nir_intrinsic_instr *intr)
|
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;
|
bool ssbo = intr->intrinsic == nir_intrinsic_load_ssbo;
|
||||||
assert(const_block_index); // no dynamic indexing for now
|
assert(const_block_index); // no dynamic indexing for now
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue