Re: [Mesa-dev] [PATCH 1/6] nir: const_index helpers

2016-02-08 Thread Jason Ekstrand
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, " /*"); > >> +

[Mesa-dev] [PATCH 1/6] nir: const_index helpers

2016-01-21 Thread Rob Clark
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