projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f94a991
)
llvmpipe: use one loop in lp_rast_clear_zstencil()
author
Brian Paul
<brianp@vmware.com>
Thu, 14 Jan 2010 01:58:38 +0000
(18:58 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 14 Jan 2010 01:58:42 +0000
(18:58 -0700)
This is just a tiny bit faster.
src/gallium/drivers/llvmpipe/lp_rast.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_rast.c
b/src/gallium/drivers/llvmpipe/lp_rast.c
index 3849116758fb633c1c082626f842c2512a06abad..75562bf62dcab1d48814fb63d72cc750cfa1a8b9 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/
src/gallium/drivers/llvmpipe/lp_rast.c
@@
-226,14
+226,13
@@
void lp_rast_clear_zstencil( struct lp_rasterizer *rast,
unsigned thread_index,
const union lp_rast_cmd_arg arg)
{
- unsigned i
, j
;
+ unsigned i;
uint32_t *depth_tile = rast->tasks[thread_index].tile.depth;
LP_DBG(DEBUG_RAST, "%s 0x%x\n", __FUNCTION__, arg.clear_zstencil);
- for (i = 0; i < TILE_SIZE; i++)
- for (j = 0; j < TILE_SIZE; j++)
- depth_tile[i*TILE_SIZE + j] = arg.clear_zstencil;
+ for (i = 0; i < TILE_SIZE * TILE_SIZE; i++)
+ depth_tile[i] = arg.clear_zstencil;
}