i915: Fail without crashing if a Mesa IR program uses too many registers
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 25 Jul 2011 23:41:39 +0000 (16:41 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 2 Aug 2011 15:23:15 +0000 (08:23 -0700)
commit3bb2f0dde1cd813a0b5e0b45be376f4d6606aeb8
treea29e12ca66186a56412fc45f19cd8b5b4d3bcea9
parent322c3bf9dc4c6edbf5a8793475ce1307e1c0186b
i915: Fail without crashing if a Mesa IR program uses too many registers

This can only happen in GLSL shaders because assembly shaders that use
too many temps are rejected by core Mesa.  It is easiest to make this
happen with shaders that contain flow-control that could not be lowered.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i915/i915_fragprog.c