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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user