diff options
author | Keith Whitwell <[email protected]> | 2009-07-17 10:44:22 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:16 +0100 |
commit | 0f55a95b2faa16cc008143c53a8b82b19c5d750a (patch) | |
tree | 69bb35652d7adddcec043c0d742c2a8e32898378 /src/gallium/drivers/llvmpipe/lp_texture.c | |
parent | 3121484a8bde7af053fb627bd716be957fcef18c (diff) |
llvmpipe: make some small steps to flush texture cache less frequently
No performance gain yet, but the code is a bit cleaner.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_texture.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_texture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index fd9b5182ea6..542e3134457 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.c +++ b/src/gallium/drivers/llvmpipe/lp_texture.c @@ -227,7 +227,8 @@ llvmpipe_get_tex_surface(struct pipe_screen *screen, if (ps->usage & (PIPE_BUFFER_USAGE_CPU_WRITE | PIPE_BUFFER_USAGE_GPU_WRITE)) { /* Mark the surface as dirty. The tile cache will look for this. */ - lpt->modified = TRUE; + lpt->timestamp++; + llvmpipe_screen(screen)->timestamp++; } ps->face = face; |