[Mesa-dev] [PATCH 0/4] Delete some useless Mesa IR bits

Ian Romanick idr at freedesktop.org
Tue Apr 19 18:22:42 UTC 2016


While doing some other work, I noticed that prog_to_nir supported SLE,
SGT, SNE, and SEQ.  It's impossible for those opcodes to occur in the
prog_to_nir path because that could only have come from the
NV_vertex_program2 (or other NV assembly program) extension.  We removed
those quite some time ago.

I was just going to remove that code, but I realized that nothing using
ir_to_mesa wants to see those opcodes.  i915 has to emit multiple
instructions to do them, and prog_execute... well, I don't think anyone
cares about that path seeing a couple extra instructions.  After
changing ir_to_mesa, there was quite a bit more code available for
deletion.

I tested this on our CI on G33 (i915-ish), and there were no regressions
on GLES2 CTS or piglit.



More information about the mesa-dev mailing list