diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2008-05-09 13:10:15 +0100 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2008-05-12 17:40:54 +0100 |
commit | 7ddb925b8bc6c18eba953e34d2b630a3a6593f05 (patch) | |
tree | 80b01057221fcea59f440940d77e2b533cd38363 /src/gallium/auxiliary/draw/draw_pt_fetch_emit.c | |
parent | c0a6040f568e0c9be07797b2dc2fdd8a3624ec34 (diff) |
draw: mimize cost of translate key compares, use cache universally
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_emit.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_emit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c index bdbb039f9e..a1d041a74f 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c @@ -174,8 +174,9 @@ static void fetch_emit_prepare( struct draw_pt_middle_end *middle, /* Don't bother with caching at this stage: */ if (!feme->translate || - memcmp(&feme->translate->key, &key, sizeof(key)) != 0) + translate_key_compare(&feme->translate->key, &key) != 0) { + translate_key_sanitize(&key); feme->translate = translate_cache_find(feme->cache, &key); |