diff options
author | Stéphane Marchesin <[email protected]> | 2011-06-22 17:02:21 -0700 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2011-06-22 17:02:21 -0700 |
commit | 1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 (patch) | |
tree | 270903e46238d1ec38d0b9f28df06abe9090179e /src/mesa/state_tracker/st_format.h | |
parent | 98ce1373e47d05d7150933c391fdeddbc897a3cd (diff) |
st/mesa: prefer native texture formats when possible.
If possible, we want to match the hardware format to what the app uses. By
doing so, we avoid the need for pixel conversions and therefore greatly speed
up texture uploads.
Diffstat (limited to 'src/mesa/state_tracker/st_format.h')
-rw-r--r-- | src/mesa/state_tracker/st_format.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_format.h b/src/mesa/state_tracker/st_format.h index 0fb570f6ee4..7bda785af60 100644 --- a/src/mesa/state_tracker/st_format.h +++ b/src/mesa/state_tracker/st_format.h @@ -52,6 +52,7 @@ st_pipe_format_to_mesa_format(enum pipe_format pipeFormat); extern enum pipe_format st_choose_format(struct pipe_screen *screen, GLenum internalFormat, + GLenum format, GLenum type, enum pipe_texture_target target, unsigned sample_count, unsigned tex_usage); |