diff options
author | Roland Scheidegger <sroland@vmware.com> | 2013-02-06 13:09:46 -0800 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2013-02-08 16:32:30 -0800 |
commit | 8e44f4117a9c73ea336063f7c2fbf4d6a592eeae (patch) | |
tree | bb5858ca7853a10037a0395f85702135e0ac1789 /src/gallium/drivers/llvmpipe/lp_rast_priv.h | |
parent | 3310acdf4756feb82bf043e7663b6dd8d6e3f7c9 (diff) | |
download | external_mesa3d-8e44f4117a9c73ea336063f7c2fbf4d6a592eeae.zip external_mesa3d-8e44f4117a9c73ea336063f7c2fbf4d6a592eeae.tar.gz external_mesa3d-8e44f4117a9c73ea336063f7c2fbf4d6a592eeae.tar.bz2 |
llvmpipe: refactoring of visibility counter handling
There can be other per-thread data than just vis_counter, so pass a struct
around instead (some of our non-public code uses this already and this
difference is a major cause of merge pain).
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast_priv.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast_priv.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast_priv.h b/src/gallium/drivers/llvmpipe/lp_rast_priv.h index afcf333..5db8fcd 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_priv.h +++ b/src/gallium/drivers/llvmpipe/lp_rast_priv.h @@ -94,8 +94,8 @@ struct lp_rasterizer_task /** "my" index */ unsigned thread_index; - /* occlude counter for visiable pixels */ - uint32_t vis_counter; + /* occlude counter for visible pixels */ + struct lp_jit_thread_data thread_data; uint64_t query_start; struct llvmpipe_query *query[PIPE_QUERY_TYPES]; @@ -276,7 +276,7 @@ lp_rast_shade_quads_all( struct lp_rasterizer_task *task, color, depth, 0xffff, - &task->vis_counter, + &task->thread_data, stride ); END_JIT_CALL(); } |