Mesa (main): i915g: Stop translating the fragment program on the first error.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 28 22:17:31 UTC 2021
Module: Mesa
Branch: main
Commit: e65ea05276cd8337a4d23fcaccb13157a318c87f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e65ea05276cd8337a4d23fcaccb13157a318c87f
Author: Emma Anholt <emma at anholt.net>
Date: Sun Jun 27 14:36:46 2021 -0700
i915g: Stop translating the fragment program on the first error.
It would proceed through printing errors for each of the unsupported loop
opcodes in the program.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11617>
---
src/gallium/drivers/i915/i915_fpc_translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c
index 6a70b630e48..107f2bd8a1d 100644
--- a/src/gallium/drivers/i915/i915_fpc_translate.c
+++ b/src/gallium/drivers/i915/i915_fpc_translate.c
@@ -914,7 +914,7 @@ i915_translate_instructions(struct i915_fp_compile *p,
struct i915_fragment_shader *fs)
{
int i;
- for (i = 0; i < tokens->NumTokens; i++) {
+ for (i = 0; i < tokens->NumTokens && !p->error; i++) {
i915_translate_token(p, &tokens->Tokens[i], fs);
}
}
More information about the mesa-commit
mailing list