On Mon, Feb 8, 2016 at 12:16 PM, Rob Clark wrote:
> On Mon, Feb 8, 2016 at 3:13 PM, Jason Ekstrand
> wrote:
> >> + if (info->index_map[NIR_INTRINSIC_BASE] ||
> >> + info->index_map[NIR_INTRINSIC_WRMASK]) {
> >> + fprintf(fp, " /*");
> >> +
From: Rob Clark
Direct access to intr->const_index[n], where different slots have
different meanings, is somewhat confusing.
Instead, let's put some extra info in nir_intrinsic_infos[] about which
slots map to what, and add some get/set helpers. The helpers validate