summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-07-11 22:49:57 +0200
committerChristoph Bumiller <[email protected]>2011-07-14 12:51:06 +0200
commitc011f94b7b4e1e93d5563f4bfd9906fa29e2ffb0 (patch)
tree95fc2593a01d955f46ed5f149394a428c3ab19c4 /src
parentcad17554c4b121c03e188dd0281718a52d603a15 (diff)
nv50,nvc0: add correct storage type for Z32_FLOAT
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nv50/nv50_miptree.c3
-rw-r--r--src/gallium/drivers/nvc0/nvc0_miptree.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c
index 0a1fcbc3e92..fcb9ca3e7ac 100644
--- a/src/gallium/drivers/nv50/nv50_miptree.c
+++ b/src/gallium/drivers/nv50/nv50_miptree.c
@@ -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;
diff --git a/src/gallium/drivers/nvc0/nvc0_miptree.c b/src/gallium/drivers/nvc0/nvc0_miptree.c
index 5da73df2d9b..8b8e2cfc780 100644
--- a/src/gallium/drivers/nvc0/nvc0_miptree.c
+++ b/src/gallium/drivers/nvc0/nvc0_miptree.c
@@ -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);