Lines Matching refs:index
1954 /* Prepare command streams setting pass index to the PERF_CNTRS_REG
2135 unsigned index = size_log2 - MIN_SCRATCH_BO_SIZE_LOG2;
2136 assert(index < ARRAY_SIZE(dev->scratch_bos));
2138 for (unsigned i = index; i < ARRAY_SIZE(dev->scratch_bos); i++) {
2150 mtx_lock(&dev->scratch_bos[index].construct_mtx);
2155 if (dev->scratch_bos[index].initialized) {
2156 mtx_unlock(&dev->scratch_bos[index].construct_mtx);
2157 *bo = dev->scratch_bos[index].bo;
2162 VkResult result = tu_bo_init_new(dev, &dev->scratch_bos[index].bo, bo_size,
2165 mtx_unlock(&dev->scratch_bos[index].construct_mtx);
2169 p_atomic_set(&dev->scratch_bos[index].initialized, true);
2171 mtx_unlock(&dev->scratch_bos[index].construct_mtx);
2173 *bo = dev->scratch_bos[index].bo;