nvc0: fix 128 bit compressed storage type selection
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 2 Apr 2013 23:17:46 +0000 (01:17 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 3 Apr 2013 10:54:44 +0000 (12:54 +0200)
src/gallium/drivers/nvc0/nvc0_miptree.c

index 2913363bf99fb28f08c380a2ce705057b72e6834..3d50735c058a999d3c446fdb18ed4314c5df0a0d 100644 (file)
@@ -82,7 +82,7 @@ nvc0_mt_choose_storage_type(struct nv50_miptree *mt, boolean compressed)
       switch (util_format_get_blocksizebits(mt->base.base.format)) {
       case 128:
          if (compressed)
-            tile_flags = 0xf4 + ms;
+            tile_flags = 0xf4 + ms * 2;
          else
             tile_flags = 0xfe;
          break;