Skip to content

ntt: Extend ntt_compile::addr_declared and ntt_compile::addr_reg

Ian Romanick requested to merge idr/mesa:review/cid-1496942 into main

This was identified by Coverity. 4bb9c0a2 added uses of a third address register, but the arrays for tracking address registers only have two slots.

Add back a version of the assertion from before 4bb9c0a2 to help prevent future problems. I don't think any drivers that would hit this path use NIR-to-TGSI yet, so it may be moot.

CID: 1496942 CID: 1496944 Fixes: 4bb9c0a2 ("nir_to_tgsi: Use the same address reg mappings as GLSL-to-TGSI did.")

Merge request reports