Skip to content

r300: random shader-related improvement

Pavel Ondračka requested to merge ondracka/mesa:r300_shader_fixes into main

This is a bunch of fixes that accumulated over time.

  • Cleanup of out NIR options.
  • Fix for a copy propagate bug
  • Valgrind warning fix originally spotted by @gawin
  • Fourth patch enables PIPE_CAP_TGSI_MUL_ZERO_WINS so we can get some better code from nine (this was was discussed in !16176 (merged) but we don't depend on that one and r300 was not even part of it...).
  • ci RV515 fails are updated (tested with RV530 but that should be the same thing when it comes to shaders)
  • There is pair regalloc fix from @gawin, this time hopefully with more informative commit message.
  • Only the last commit goes beyond bugfixes/cleanups and tries to actually take advantage of R300 ability to do constant swizzles (just for movs now, but hopefully this could evolve over time do most of the optimizations mentioned in #6188 (closed))

Merge request reports