i965: Remove unnecessary walk through Mesa IR in ProgramStringNotify().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 26 Oct 2012 18:52:23 +0000 (11:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Nov 2012 21:29:36 +0000 (14:29 -0700)
commit60c008dde6c1ef884d2b4fdcd199e71e8ec597e4
treeec4efb2d30face1d20041c3a89d35bc4a618c61b
parent109a97dbd2748eaf4813d9f0c7d9ea396daeddbc
i965: Remove unnecessary walk through Mesa IR in ProgramStringNotify().

Variable indexing of non-uniform arrays only exists in GLSL.  Likewise,
OPCODE_CAL/OPCODE_RET only existed to try and support GLSL's function
calls.  We don't use Mesa IR for GLSL, and these features are explicitly
disallowed by ARB_vertex_program/ARB_fragment_program and never
generated by ffvertex_prog.c.

Since they'll never happen, there's no need to check for them, which
saves us from walking through all the Mesa IR instructions.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_program.c