Mesa (master): freedreno/ir3: add assert
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Feb 28 17:12:35 UTC 2020
Module: Mesa
Branch: master
Commit: 8cb9f79413105a8eea98eaf70725cc1e28ae041c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8cb9f79413105a8eea98eaf70725cc1e28ae041c
Author: Rob Clark <robdclark at chromium.org>
Date: Thu Feb 27 16:13:01 2020 -0800
freedreno/ir3: add assert
Catch problems earlier when inputs are not setup correctly.
Signed-off-by: Rob Clark <robdclark at chromium.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3989>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3989>
---
src/freedreno/ir3/ir3_compiler_nir.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c
index a8b691a15d7..01f0985da62 100644
--- a/src/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/freedreno/ir3/ir3_compiler_nir.c
@@ -1540,6 +1540,7 @@ emit_intrinsic(struct ir3_context *ctx, nir_intrinsic_instr *intr)
* nir_variable to figure out what it is.
*/
dst[i] = ctx->inputs[inloc];
+ compile_assert(ctx, dst[i]);
}
}
} else {
More information about the mesa-commit
mailing list