aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_format.h
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-06-22 17:02:21 -0700
committerStéphane Marchesin <[email protected]>2011-06-22 17:02:21 -0700
commit1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 (patch)
tree270903e46238d1ec38d0b9f28df06abe9090179e /src/mesa/state_tracker/st_format.h
parent98ce1373e47d05d7150933c391fdeddbc897a3cd (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.h1
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);