llvmpipe: enable texcoord semantics
[mesa.git] / src / gallium / drivers / llvmpipe / lp_rast.c
index d50e92b2b61a01da14da010451f2654dbdcd3566..ef783ea6fb1b6782590c33d7159784d954444c4a 100644 (file)
@@ -867,6 +867,10 @@ create_rast_threads(struct lp_rasterizer *rast)
       pipe_semaphore_init(&rast->tasks[i].work_done, 0);
       rast->threads[i] = u_thread_create(thread_function,
                                             (void *) &rast->tasks[i]);
+      if (!rast->threads[i]) {
+         rast->num_threads = i; /* previous thread is max */
+         break;
+      }
    }
 }