diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-02-25 01:55:13 +0100 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2010-02-25 18:37:39 +0100 |
commit | 51e8a66fa197de7e17fb94d901a4cf26f0812670 (patch) | |
tree | c83cf90b001da55c49d70dc059133a300b8ea31b /src/mesa/drivers/dri/nouveau/nv10_state_tex.c | |
parent | 59ddf8ca635465dea1d455c384f5905b65dc6979 (diff) |
dri/nouveau: Use the XRGB8888 hardware texture format.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv10_state_tex.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv10_state_tex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state_tex.c b/src/mesa/drivers/dri/nouveau/nv10_state_tex.c index 7fe27317b2..02a5ca797a 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_state_tex.c +++ b/src/mesa/drivers/dri/nouveau/nv10_state_tex.c @@ -44,6 +44,9 @@ get_tex_format_pot(struct gl_texture_image *ti) case MESA_FORMAT_ARGB8888: return NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8; + case MESA_FORMAT_XRGB8888: + return NV10TCL_TX_FORMAT_FORMAT_X8R8G8B8; + case MESA_FORMAT_ARGB1555: return NV10TCL_TX_FORMAT_FORMAT_A1R5G5B5; @@ -79,6 +82,7 @@ get_tex_format_rect(struct gl_texture_image *ti) return NV10TCL_TX_FORMAT_FORMAT_R5G6B5_RECT; case MESA_FORMAT_ARGB8888: + case MESA_FORMAT_XRGB8888: return NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8_RECT; case MESA_FORMAT_A8: |