summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/translate/translate.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-05-08 22:13:21 +0100
committerKeith Whitwell <[email protected]>2008-05-08 22:15:00 +0100
commitb514f5f3ba4c9cf6c39cbcdf5bf0d2d8efb8d19b (patch)
tree1886ac244a69a5b3393b4f032b4b285b8e1cd753 /src/gallium/auxiliary/translate/translate.h
parentfec1d215f623221cb52f22c8f10e5de99ebc9cc2 (diff)
draw: only fill in / compare the part of the translate key we're using.
It's quite a big struct & we examine it a lot (too much). Reduce the impact of this by just looking at the active part where possible.
Diffstat (limited to 'src/gallium/auxiliary/translate/translate.h')
-rw-r--r--src/gallium/auxiliary/translate/translate.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/translate/translate.h b/src/gallium/auxiliary/translate/translate.h
index 6c15d7e4dc7..de6f09d18a2 100644
--- a/src/gallium/auxiliary/translate/translate.h
+++ b/src/gallium/auxiliary/translate/translate.h
@@ -47,10 +47,9 @@
struct translate_element
{
enum pipe_format input_format;
- unsigned input_buffer;
- unsigned input_offset;
-
enum pipe_format output_format;
+ unsigned input_buffer;
+ unsigned input_offset; /* can't really reduce the size of these */
unsigned output_offset;
};