Lines Matching refs:equation

1638                                  struct gfx9_meta_equation *equation)
1640 equation->meta_block_width = dcc->metaBlkWidth;
1641 equation->meta_block_height = dcc->metaBlkHeight;
1642 equation->meta_block_depth = dcc->metaBlkDepth;
1647 assert(dcc->equation.gfx10_bits[i] == 0);
1649 for (unsigned i = ARRAY_SIZE(equation->u.gfx10_bits) + 4; i < 68; i++)
1650 assert(dcc->equation.gfx10_bits[i] == 0);
1652 memcpy(equation->u.gfx10_bits, dcc->equation.gfx10_bits + 4,
1653 sizeof(equation->u.gfx10_bits));
1655 assert(dcc->equation.gfx9.num_bits <= ARRAY_SIZE(equation->u.gfx9.bit));
1657 equation->u.gfx9.num_bits = dcc->equation.gfx9.num_bits;
1658 equation->u.gfx9.num_pipe_bits = dcc->equation.gfx9.numPipeBits;
1659 for (unsigned b = 0; b < ARRAY_SIZE(equation->u.gfx9.bit); b++) {
1660 for (unsigned c = 0; c < ARRAY_SIZE(equation->u.gfx9.bit[b].coord); c++) {
1661 equation->u.gfx9.bit[b].coord[c].dim = dcc->equation.gfx9.bit[b].coord[c].dim;
1662 equation->u.gfx9.bit[b].coord[c].ord = dcc->equation.gfx9.bit[b].coord[c].ord;
1670 struct gfx9_meta_equation *equation)
1672 equation->meta_block_width = cmask->metaBlkWidth;
1673 equation->meta_block_height = cmask->metaBlkHeight;
1674 equation->meta_block_depth = 1;
1677 assert(cmask->equation.gfx9.num_bits <= ARRAY_SIZE(equation->u.gfx9.bit));
1679 equation->u.gfx9.num_bits = cmask->equation.gfx9.num_bits;
1680 equation->u.gfx9.num_pipe_bits = cmask->equation.gfx9.numPipeBits;
1681 for (unsigned b = 0; b < ARRAY_SIZE(equation->u.gfx9.bit); b++) {
1682 for (unsigned c = 0; c < ARRAY_SIZE(equation->u.gfx9.bit[b].coord); c++) {
1683 equation->u.gfx9.bit[b].coord[c].dim = cmask->equation.gfx9.bit[b].coord[c].dim;
1684 equation->u.gfx9.bit[b].coord[c].ord = cmask->equation.gfx9.bit[b].coord[c].ord;
1692 struct gfx9_meta_equation *equation)
1694 equation->meta_block_width = htile->metaBlkWidth;
1695 equation->meta_block_height = htile->metaBlkHeight;
1699 assert(htile->equation.gfx10_bits[i] == 0);
1701 for (unsigned i = ARRAY_SIZE(equation->u.gfx10_bits) + 8; i < 72; i++)
1702 assert(htile->equation.gfx10_bits[i] == 0);
1704 memcpy(equation->u.gfx10_bits, htile->equation.gfx10_bits + 8,
1705 sizeof(equation->u.gfx10_bits));
3124 struct gfx9_meta_equation *equation,
3136 unsigned meta_block_width_log2 = util_logbase2(equation->meta_block_width);
3137 unsigned meta_block_height_log2 = util_logbase2(equation->meta_block_height);
3148 if (equation->u.gfx10_bits[index]) {
3149 unsigned mask = equation->u.gfx10_bits[index];
3180 struct gfx9_meta_equation *equation,
3191 unsigned meta_block_width_log2 = util_logbase2(equation->meta_block_width);
3192 unsigned meta_block_height_log2 = util_logbase2(equation->meta_block_height);
3193 unsigned meta_block_depth_log2 = util_logbase2(equation->meta_block_depth);
3196 unsigned numPipeBits = equation->u.gfx9.num_pipe_bits;
3210 unsigned num_bits = equation->u.gfx9.num_bits;
3218 if (equation->u.gfx9.bit[i].coord[c].dim >= 5)
3221 assert(equation->u.gfx9.bit[i].coord[c].ord < 32);
3223 nir_iand(b, nir_ushr_imm(b, coords[equation->u.gfx9.bit[i].coord[c].dim],
3224 equation->u.gfx9.bit[i].coord[c].ord), one);
3235 equation->u.gfx9.bit[last].coord[0].ord),
3248 unsigned bpe, struct gfx9_meta_equation *equation,
3257 return gfx10_nir_meta_addr_from_coord(b, info, equation, bpp_log2 - 8, 1,
3261 return gfx9_nir_meta_addr_from_coord(b, info, equation, dcc_pitch,
3268 struct gfx9_meta_equation *equation,
3278 return gfx10_nir_meta_addr_from_coord(b, info, equation, -7, 1,
3282 return gfx9_nir_meta_addr_from_coord(b, info, equation, cmask_pitch,
3289 struct gfx9_meta_equation *equation,
3295 return gfx10_nir_meta_addr_from_coord(b, info, equation, -4, 2,