mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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:
parent
4f78c27330
commit
af823b5d58
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue