diff options
author | Stéphane Marchesin <[email protected]> | 2011-06-24 14:07:31 -0700 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2011-06-24 14:32:48 -0700 |
commit | 407832b0d251515307dc0712863e243435baa4c2 (patch) | |
tree | f1821f7987e33f0d46d0cb0e90a5917253ee2de5 /src | |
parent | 100a37587f9919d986e6af6f7e2ddecdc5bcfd09 (diff) |
st/mesa: add PIPE_FORMAT_R8G8B8A8_UNORM as the first RGBA format.
Otherwise we can end up creating RGBA render targets (which are BGRA on the
hardware), and then we bind them as RGBA textures (which are RGBA on the
hardware). This generates software fallbacks every time we bind the frame as
a texture.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index b8c0d1f029e..fa5d8f5050a 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -616,7 +616,7 @@ static const struct format_mapping format_map[] = { }, { { 4, GL_RGBA, GL_RGBA8, 0 }, - { DEFAULT_RGBA_FORMATS } + { PIPE_FORMAT_R8G8B8A8_UNORM, DEFAULT_RGBA_FORMATS } }, { { GL_BGRA, 0 }, |