diff options
author | Chia-I Wu <[email protected]> | 2011-11-22 15:05:25 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-11-27 12:43:24 +0800 |
commit | d4fcf67a3ac78c29448000486dadc2b4b1b2a56d (patch) | |
tree | de68969c78428e72aef94a30adcd94c389bc56c4 /src/mesa/swrast/s_texfetch.c | |
parent | 6baa5f10c04641960e0bedce664d0a5cf39e8954 (diff) |
mesa: add MESA_FORMAT_RGBX8888 and MESA_FORMAT_RGBX8888_REV
MESA_FORMAT_RGBX8888_REV is one of the opaque pixel formats used on Android.
Thanks to texture-from-pixmap, drivers may actually see texture images with
this format on Android.
MESA_FORMAT_RGBX8888 is added only for completeness.
Reviewed-by: Brian Paul <[email protected]>
[olv: Move the new formats after MESA_FORMAT_ARGB8888_REV in gl_format. I
accidentally moved them to the wrong place when preparing the patch.]
Diffstat (limited to 'src/mesa/swrast/s_texfetch.c')
-rw-r--r-- | src/mesa/swrast/s_texfetch.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_texfetch.c b/src/mesa/swrast/s_texfetch.c index a854c3efd24..bfa7da79d67 100644 --- a/src/mesa/swrast/s_texfetch.c +++ b/src/mesa/swrast/s_texfetch.c @@ -165,6 +165,20 @@ texfetch_funcs[MESA_FORMAT_COUNT] = store_texel_argb8888_rev }, { + MESA_FORMAT_RGBX8888, + fetch_texel_1d_f_rgbx8888, + fetch_texel_2d_f_rgbx8888, + fetch_texel_3d_f_rgbx8888, + store_texel_rgbx8888 + }, + { + MESA_FORMAT_RGBX8888_REV, + fetch_texel_1d_f_rgbx8888_rev, + fetch_texel_2d_f_rgbx8888_rev, + fetch_texel_3d_f_rgbx8888_rev, + store_texel_rgbx8888_rev, + }, + { MESA_FORMAT_XRGB8888, fetch_texel_1d_f_xrgb8888, fetch_texel_2d_f_xrgb8888, |