Lines Matching refs:threads
1912 DBG(("%s: using %d threads\n", __FUNCTION__, num_threads));
1933 struct span_thread threads[num_threads];
1936 DBG(("%s: using %d threads for span compositing %dx%d\n",
1941 threads[0].sna = sna;
1942 threads[0].op = &tmp;
1943 threads[0].traps = traps;
1944 threads[0].ntrap = ntrap;
1945 threads[0].extents = clip.extents;
1946 threads[0].clip = &clip;
1947 threads[0].dx = dx;
1948 threads[0].dy = dy;
1949 threads[0].draw_y = dst->pDrawable->y;
1950 threads[0].unbounded = !was_clear && maskFormat && !operator_is_bounded(op);
1951 threads[0].span = thread_choose_span(&tmp, dst, maskFormat, &clip);
1959 threads[n] = threads[0];
1960 threads[n].extents.y1 = y;
1961 threads[n].extents.y2 = y += h;
1963 sna_threads_run(n, span_thread, &threads[n]);
1966 assert(y < threads[0].extents.y2);
1967 threads[0].extents.y1 = y;
1968 span_thread(&threads[0]);
2152 struct mask_thread threads[num_threads];
2155 DBG(("%s: using %d threads for mask compositing %dx%d\n",
2160 threads[0].scratch = scratch;
2161 threads[0].traps = traps;
2162 threads[0].ntrap = ntrap;
2163 threads[0].extents = extents;
2164 threads[0].dx = dx;
2165 threads[0].dy = dy;
2166 threads[0].dst_y = dst_y;
2174 threads[n] = threads[0];
2175 threads[n].extents.y1 = y;
2176 threads[n].extents.y2 = y += h;
2178 sna_threads_run(n, mask_thread, &threads[n]);
2181 assert(y < threads[0].extents.y2);
2182 threads[0].extents.y1 = y;
2183 mask_thread(&threads[0]);
2772 struct inplace_x8r8g8b8_thread threads[num_threads];
2775 DBG(("%s: using %d threads for inplace compositing %dx%d\n",
2780 threads[0].traps = traps;
2781 threads[0].ntrap = ntrap;
2782 threads[0].extents = region.extents;
2783 threads[0].lerp = lerp;
2784 threads[0].is_solid = is_solid;
2785 threads[0].color = color;
2786 threads[0].dx = dx;
2787 threads[0].dy = dy;
2788 threads[0].dst = dst;
2789 threads[0].src = src;
2790 threads[0].op = op;
2791 threads[0].src_x = src_x;
2792 threads[0].src_y = src_y;
2801 threads[n] = threads[0];
2802 threads[n].extents.y1 = y;
2803 threads[n].extents.y2 = y += h;
2805 sna_threads_run(n, inplace_x8r8g8b8_thread, &threads[n]);
2808 assert(y < threads[0].extents.y2);
2809 threads[0].extents.y1 = y;
2810 inplace_x8r8g8b8_thread(&threads[0]);
3039 struct inplace_thread threads[num_threads];
3042 DBG(("%s: using %d threads for inplace compositing %dx%d\n",
3047 threads[0].traps = traps;
3048 threads[0].ntrap = ntrap;
3049 threads[0].inplace = inplace;
3050 threads[0].extents = region.extents;
3051 threads[0].clipped = clipped;
3052 threads[0].span = span;
3053 threads[0].unbounded = unbounded;
3054 threads[0].dx = dx;
3055 threads[0].dy = dy;
3056 threads[0].draw_x = dst->pDrawable->x;
3057 threads[0].draw_y = dst->pDrawable->y;
3066 threads[n] = threads[0];
3067 threads[n].extents.y1 = y;
3068 threads[n].extents.y2 = y += h;
3070 sna_threads_run(n, inplace_thread, &threads[n]);
3073 assert(y < threads[0].extents.y2);
3074 threads[0].extents.y1 = y;
3075 inplace_thread(&threads[0]);
3186 struct mask_thread threads[num_threads];
3189 DBG(("%s: using %d threads for mask compositing %dx%d\n",
3194 threads[0].scratch = scratch;
3195 threads[0].traps = traps;
3196 threads[0].ntrap = ntrap;
3197 threads[0].extents = extents;
3198 threads[0].dx = dx;
3199 threads[0].dy = dy;
3200 threads[0].dst_y = dst_y;
3208 threads[n] = threads[0];
3209 threads[n].extents.y1 = y;
3210 threads[n].extents.y2 = y += h;
3212 sna_threads_run(n, mask_thread, &threads[n]);
3215 assert(y < threads[0].extents.y2);
3216 threads[0].extents.y1 = y;
3217 mask_thread(&threads[0]);
3450 struct tristrip_thread threads[num_threads];
3453 DBG(("%s: using %d threads for tristrip compositing %dx%d\n",
3458 threads[0].sna = sna;
3459 threads[0].op = &tmp;
3460 threads[0].points = points;
3461 threads[0].count = count;
3462 threads[0].extents = clip.extents;
3463 threads[0].clip = &clip;
3464 threads[0].dx = dx;
3465 threads[0].dy = dy;
3466 threads[0].draw_y = dst->pDrawable->y;
3467 threads[0].unbounded = !was_clear && maskFormat && !operator_is_bounded(op);
3468 threads[0].span = thread_choose_span(&tmp, dst, maskFormat, &clip);
3476 threads[n] = threads[0];
3477 threads[n].extents.y1 = y;
3478 threads[n].extents.y2 = y += h;
3480 sna_threads_run(n, tristrip_thread, &threads[n]);
3483 assert(y < threads[0].extents.y2);
3484 threads[0].extents.y1 = y;
3485 tristrip_thread(&threads[0]);