Mesa (master): r300g: add texture format for xvmc

Cooper Yuan cooperyuan at kemper.freedesktop.org
Fri Sep 25 07:15:51 UTC 2009


Module: Mesa
Branch: master
Commit: 16a6ca9b2bd4f91aad69d4a5d36402e70a46bd37
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=16a6ca9b2bd4f91aad69d4a5d36402e70a46bd37

Author: Cooper Yuan <cooperyuan at gmail.com>
Date:   Fri Sep 25 15:15:20 2009 +0800

r300g: add texture format for xvmc

---

 src/gallium/drivers/r300/r300_texture.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_texture.h b/src/gallium/drivers/r300/r300_texture.h
index 3109af5..6976691 100644
--- a/src/gallium/drivers/r300/r300_texture.h
+++ b/src/gallium/drivers/r300/r300_texture.h
@@ -72,6 +72,9 @@ static INLINE uint32_t r300_translate_texformat(enum pipe_format format)
         /* W24_FP */
         case PIPE_FORMAT_Z24S8_UNORM:
             return R300_EASY_TX_FORMAT(X, X, X, X, W24_FP);
+	/* Z5_Y6_X5 */
+        case PIPE_FORMAT_R16_SNORM:
+            return R300_EASY_TX_FORMAT(X, X, X, X, Z5Y6X5);
         default:
             debug_printf("r300: Implementation error: "
                 "Got unsupported texture format %s in %s\n",




More information about the mesa-commit mailing list