diff options
author | Emma Anholt <emma@anholt.net> | 2023-10-03 11:46:55 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-10-09 17:14:10 +0000 |
commit | af823b5d58c4de1b974923065e399ecfb8253683 (patch) | |
tree | 9b90c648648d6bf1da08ec131d43bad570d2c2e9 /src/gallium/drivers/i915 | |
parent | 4f78c273307585a0cd3f0367f4d77b53dc4d45c5 (diff) |
i915: Make exceeding tex indirect count fatal.
The HW should fail to run shaders that have too many phases, so do this so
that we get link failures.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25533>
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r-- | src/gallium/drivers/i915/i915_fpc_translate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index 72eb73ed3c2..6bd7a073d81 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -986,8 +986,9 @@ i915_fini_compile(struct i915_context *i915, struct i915_fp_compile *p) unsigned long decl_size = (unsigned long)(p->decl - p->declarations); if (p->nr_tex_indirect > I915_MAX_TEX_INDIRECT) { - debug_printf("Exceeded max nr indirect texture lookups (%d/%d)\n", - p->nr_tex_indirect, I915_MAX_TEX_INDIRECT); + i915_program_error(p, + "Exceeded max nr indirect texture lookups (%d/%d)\n", + p->nr_tex_indirect, I915_MAX_TEX_INDIRECT); } if (p->nr_tex_insn > I915_MAX_TEX_INSN) { |