nv50,nvc0: add correct storage type for Z32_FLOAT
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 11 Jul 2011 20:49:57 +0000 (22:49 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 14 Jul 2011 10:51:06 +0000 (12:51 +0200)
src/gallium/drivers/nv50/nv50_miptree.c
src/gallium/drivers/nvc0/nvc0_miptree.c

index 0a1fcbc3e921f6e96c8f766335565bec6160e414..fcb9ca3e7ac0caa249cf63a7c5daf8540ed25b8e 100644 (file)
@@ -56,6 +56,9 @@ nv50_mt_choose_storage_type(struct nv50_miptree *mt, boolean compressed)
    case PIPE_FORMAT_Z24_UNORM_S8_USCALED:
       tile_flags = 0x22800 + (ms << 8);
       break;
+   case PIPE_FORMAT_Z32_FLOAT:
+      tile_flags = 0x4000 + (ms << 8);
+      break;
    case PIPE_FORMAT_Z32_FLOAT_S8X24_USCALED:
       tile_flags = 0x6000 + (ms << 8);
       break;
index 5da73df2d9b453349703ef9f65cc8a0d367fbf28..8b8e2cfc780a9851fbe5a7bd0e8ec6249563349a 100644 (file)
@@ -89,6 +89,12 @@ nvc0_mt_choose_storage_type(struct nv50_miptree *mt, boolean compressed)
       else
          tile_flags = 0x1100;
       break;
+   case PIPE_FORMAT_Z32_FLOAT:
+      if (compressed)
+         tile_flags = 0x8600 + (ms << 8);
+      else
+         tile_flags = 0x7b00;
+      break;
    case PIPE_FORMAT_Z32_FLOAT_S8X24_USCALED:
       if (compressed)
          tile_flags = 0xce00 + (ms << 8);