Mesa (master): nvc0: correct storage type for 16 bit surface formats

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Wed Feb 9 15:05:54 UTC 2011


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

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Wed Feb  2 16:35:21 2011 +0100

nvc0: correct storage type for 16 bit surface formats

---

 src/gallium/drivers/nvc0/nvc0_miptree.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/nvc0/nvc0_miptree.c b/src/gallium/drivers/nvc0/nvc0_miptree.c
index 7c7e134..22f48c8 100644
--- a/src/gallium/drivers/nvc0/nvc0_miptree.c
+++ b/src/gallium/drivers/nvc0/nvc0_miptree.c
@@ -143,8 +143,7 @@ nvc0_miptree_create(struct pipe_screen *pscreen,
    switch (pt->format) {
    case PIPE_FORMAT_Z16_UNORM:
       tile_flags = 0x0700; /* COMPRESSED */
-      tile_flags = 0x0200; /* NORMAL ? */
-      tile_flags = 0x0100; /* NORMAL ? */
+      tile_flags = 0x0100; /* NORMAL */
       break;
    case PIPE_FORMAT_S8_USCALED_Z24_UNORM:
       tile_flags = 0x5300; /* MSAA 4, COMPRESSED */
@@ -170,6 +169,7 @@ nvc0_miptree_create(struct pipe_screen *pscreen,
       break;
    case PIPE_FORMAT_R16G16B16A16_UNORM:
       tile_flags = 0xe900; /* COMPRESSED */
+      tile_flags = 0xfe00; /* NORMAL */
       break;
    default:
       tile_flags = 0xe000; /* MSAA 4, COMPRESSED 32 BIT */




More information about the mesa-commit mailing list