Lines Matching refs:stores
29 * operation, so we merge depth/stencil stores with color stores.
30 * If there are no color stores, we add a write to the "depth RT".
34 * depth/stencil stores into a single +ZS_EMIT op.
52 nir_intrinsic_instr **stores)
61 nir_intrinsic_set_dest_type(intr, pan_nir_rt_store_type(stores[2]));
70 stores[0] ? stores[0]->src[0].ssa : zero,
71 stores[1] ? stores[1]->src[0].ssa : zero,
72 stores[2] ? stores[2]->src[0].ssa : zero4,
105 nir_intrinsic_instr *stores[3] = { NULL };
118 assert(!stores[i]);
119 stores[i] = intr;
125 if (!stores[0] && !stores[1] && !stores[2]) continue;
129 /* Ensure all stores are in the same block */
130 for (unsigned i = 0; i < ARRAY_SIZE(stores); ++i) {
131 if (!stores[i])
134 nir_block *block = stores[i]->instr.block;
143 if (stores[0])
145 if (stores[1])
147 if (stores[2])
181 pan_nir_emit_combined_store(&b, intr, this_store, stores);
195 pan_nir_emit_combined_store(&b, NULL, writeout, stores);
198 for (unsigned i = 0; i < ARRAY_SIZE(stores); ++i) {
199 if (stores[i])
200 nir_instr_remove(&stores[i]->instr);