summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_setup.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-07-27 11:36:24 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:16 +0100
commitc9a5930fe45a0a0299769bd2b672ca516d1bf39e (patch)
treefc6ef11953101215179be32296dac374f43a7e4d /src/gallium/drivers/llvmpipe/lp_setup.c
parent8783732c4d2b9162d996f678eb41e3eae3ac86c7 (diff)
llvmpipe: Rename preprocessor symbols too.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c
index 1bfe9d4852..e4cf0a60fa 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -61,7 +61,7 @@ struct edge {
int lines; /**< number of lines on this edge */
};
-#if SP_NUM_QUAD_THREADS > 1
+#if LP_NUM_QUAD_THREADS > 1
/* Set to 1 if you want other threads to be instantly
* notified of pending jobs.
@@ -169,9 +169,9 @@ struct setup_context {
struct tgsi_interp_coef posCoef; /* For Z, W */
struct quad_header quad;
-#if SP_NUM_QUAD_THREADS > 1
+#if LP_NUM_QUAD_THREADS > 1
struct quad_job_que que;
- struct thread_info threads[SP_NUM_QUAD_THREADS];
+ struct thread_info threads[LP_NUM_QUAD_THREADS];
#endif
struct {
@@ -190,7 +190,7 @@ struct setup_context {
unsigned winding; /* which winding to cull */
};
-#if SP_NUM_QUAD_THREADS > 1
+#if LP_NUM_QUAD_THREADS > 1
static PIPE_THREAD_ROUTINE( quad_thread, param )
{
@@ -323,7 +323,7 @@ clip_emit_quad( struct setup_context *setup, struct quad_header *quad, uint thre
}
}
-#if SP_NUM_QUAD_THREADS > 1
+#if LP_NUM_QUAD_THREADS > 1
static void
clip_emit_quad_job( struct setup_context *setup, uint thread, struct quad_job *job )
@@ -373,7 +373,7 @@ emit_quad( struct setup_context *setup, struct quad_header *quad, uint thread )
#endif
}
-#if SP_NUM_QUAD_THREADS > 1
+#if LP_NUM_QUAD_THREADS > 1
static void
emit_quad_job( struct setup_context *setup, uint thread, struct quad_job *job )
@@ -1490,7 +1490,7 @@ void setup_prepare( struct setup_context *setup )
/* Note: nr_attrs is only used for debugging (vertex printing) */
setup->quad.nr_attrs = draw_num_vs_outputs(lp->draw);
- for (i = 0; i < SP_NUM_QUAD_THREADS; i++) {
+ for (i = 0; i < LP_NUM_QUAD_THREADS; i++) {
lp->quad[i].first->begin( lp->quad[i].first );
}
@@ -1520,7 +1520,7 @@ void setup_destroy_context( struct setup_context *setup )
struct setup_context *setup_create_context( struct llvmpipe_context *llvmpipe )
{
struct setup_context *setup = CALLOC_STRUCT(setup_context);
-#if SP_NUM_QUAD_THREADS > 1
+#if LP_NUM_QUAD_THREADS > 1
uint i;
#endif
@@ -1529,7 +1529,7 @@ struct setup_context *setup_create_context( struct llvmpipe_context *llvmpipe )
setup->quad.coef = setup->coef;
setup->quad.posCoef = &setup->posCoef;
-#if SP_NUM_QUAD_THREADS > 1
+#if LP_NUM_QUAD_THREADS > 1
setup->que.first = 0;
setup->que.last = 0;
pipe_mutex_init( setup->que.que_mutex );
@@ -1538,7 +1538,7 @@ struct setup_context *setup_create_context( struct llvmpipe_context *llvmpipe )
setup->que.jobs_added = 0;
setup->que.jobs_done = 0;
pipe_condvar_init( setup->que.que_done_condvar );
- for (i = 0; i < SP_NUM_QUAD_THREADS; i++) {
+ for (i = 0; i < LP_NUM_QUAD_THREADS; i++) {
setup->threads[i].setup = setup;
setup->threads[i].id = i;
setup->threads[i].handle = pipe_thread_create( quad_thread, &setup->threads[i] );