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>
This commit is contained in:
Emma Anholt
2023-10-03 11:46:55 -07:00
committed by Marge Bot
parent 4f78c27330
commit af823b5d58

View File

@@ -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) {