Lines Matching defs:equation
1556 struct gfx9_meta_equation *equation)
1558 equation->meta_block_width = dcc->metaBlkWidth;
1559 equation->meta_block_height = dcc->metaBlkHeight;
1560 equation->meta_block_depth = dcc->metaBlkDepth;
1565 assert(dcc->equation.gfx10_bits[i] == 0);
1567 for (unsigned i = ARRAY_SIZE(equation->u.gfx10_bits) + 4; i < 68; i++)
1568 assert(dcc->equation.gfx10_bits[i] == 0);
1570 memcpy(equation->u.gfx10_bits, dcc->equation.gfx10_bits + 4,
1571 sizeof(equation->u.gfx10_bits));
1573 assert(dcc->equation.gfx9.num_bits <= ARRAY_SIZE(equation->u.gfx9.bit));
1575 equation->u.gfx9.num_bits = dcc->equation.gfx9.num_bits;
1576 equation->u.gfx9.num_pipe_bits = dcc->equation.gfx9.numPipeBits;
1577 for (unsigned b = 0; b < ARRAY_SIZE(equation->u.gfx9.bit); b++) {
1578 for (unsigned c = 0; c < ARRAY_SIZE(equation->u.gfx9.bit[b].coord); c++) {
1579 equation->u.gfx9.bit[b].coord[c].dim = dcc->equation.gfx9.bit[b].coord[c].dim;
1580 equation->u.gfx9.bit[b].coord[c].ord = dcc->equation.gfx9.bit[b].coord[c].ord;
1588 struct gfx9_meta_equation *equation)
1590 equation->meta_block_width = cmask->metaBlkWidth;
1591 equation->meta_block_height = cmask->metaBlkHeight;
1592 equation->meta_block_depth = 1;
1595 assert(cmask->equation.gfx9.num_bits <= ARRAY_SIZE(equation->u.gfx9.bit));
1597 equation->u.gfx9.num_bits = cmask->equation.gfx9.num_bits;
1598 equation->u.gfx9.num_pipe_bits = cmask->equation.gfx9.numPipeBits;
1599 for (unsigned b = 0; b < ARRAY_SIZE(equation->u.gfx9.bit); b++) {
1600 for (unsigned c = 0; c < ARRAY_SIZE(equation->u.gfx9.bit[b].coord); c++) {
1601 equation->u.gfx9.bit[b].coord[c].dim = cmask->equation.gfx9.bit[b].coord[c].dim;
1602 equation->u.gfx9.bit[b].coord[c].ord = cmask->equation.gfx9.bit[b].coord[c].ord;
1610 struct gfx9_meta_equation *equation)
1612 equation->meta_block_width = htile->metaBlkWidth;
1613 equation->meta_block_height = htile->metaBlkHeight;
1617 assert(htile->equation.gfx10_bits[i] == 0);
1619 for (unsigned i = ARRAY_SIZE(equation->u.gfx10_bits) + 8; i < 72; i++)
1620 assert(htile->equation.gfx10_bits[i] == 0);
1622 memcpy(equation->u.gfx10_bits, htile->equation.gfx10_bits + 8,
1623 sizeof(equation->u.gfx10_bits));
3014 struct gfx9_meta_equation *equation,
3026 unsigned meta_block_width_log2 = util_logbase2(equation->meta_block_width);
3027 unsigned meta_block_height_log2 = util_logbase2(equation->meta_block_height);
3038 if (equation->u.gfx10_bits[index]) {
3039 unsigned mask = equation->u.gfx10_bits[index];
3070 struct gfx9_meta_equation *equation,
3081 unsigned meta_block_width_log2 = util_logbase2(equation->meta_block_width);
3082 unsigned meta_block_height_log2 = util_logbase2(equation->meta_block_height);
3083 unsigned meta_block_depth_log2 = util_logbase2(equation->meta_block_depth);
3086 unsigned numPipeBits = equation->u.gfx9.num_pipe_bits;
3100 unsigned num_bits = equation->u.gfx9.num_bits;
3108 if (equation->u.gfx9.bit[i].coord[c].dim >= 5)
3111 assert(equation->u.gfx9.bit[i].coord[c].ord < 32);
3113 nir_iand(b, nir_ushr_imm(b, coords[equation->u.gfx9.bit[i].coord[c].dim],
3114 equation->u.gfx9.bit[i].coord[c].ord), one);
3125 equation->u.gfx9.bit[last].coord[0].ord),
3138 unsigned bpe, struct gfx9_meta_equation *equation,
3147 return gfx10_nir_meta_addr_from_coord(b, info, equation, bpp_log2 - 8, 1,
3151 return gfx9_nir_meta_addr_from_coord(b, info, equation, dcc_pitch,
3158 struct gfx9_meta_equation *equation,
3168 return gfx10_nir_meta_addr_from_coord(b, info, equation, -7, 1,
3172 return gfx9_nir_meta_addr_from_coord(b, info, equation, cmask_pitch,
3179 struct gfx9_meta_equation *equation,
3185 return gfx10_nir_meta_addr_from_coord(b, info, equation, -4, 2,