Mesa (7.11): nv50,nvc0: add correct storage type for Z32_FLOAT
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Mon Jul 18 11:55:18 UTC 2011
Module: Mesa
Branch: 7.11
Commit: 3b605cb0d640c0c644fc6385a655895670ee556a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3b605cb0d640c0c644fc6385a655895670ee556a
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Mon Jul 18 13:48:19 2011 +0200
nv50,nvc0: add correct storage type for Z32_FLOAT
---
src/gallium/drivers/nv50/nv50_miptree.c | 3 +++
src/gallium/drivers/nvc0/nvc0_miptree.c | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c
index 486b368..311e1e9 100644
--- a/src/gallium/drivers/nv50/nv50_miptree.c
+++ b/src/gallium/drivers/nv50/nv50_miptree.c
@@ -154,6 +154,9 @@ nv50_miptree_create(struct pipe_screen *pscreen,
case PIPE_FORMAT_R32G32B32_FLOAT:
tile_flags = 0x7400;
break;
+ case PIPE_FORMAT_Z32_FLOAT:
+ tile_flags = 0x4000;
+ break;
case PIPE_FORMAT_Z32_FLOAT_S8X24_USCALED:
tile_flags = 0x6000;
break;
diff --git a/src/gallium/drivers/nvc0/nvc0_miptree.c b/src/gallium/drivers/nvc0/nvc0_miptree.c
index bced324..972b9a2 100644
--- a/src/gallium/drivers/nvc0/nvc0_miptree.c
+++ b/src/gallium/drivers/nvc0/nvc0_miptree.c
@@ -168,6 +168,9 @@ nvc0_miptree_create(struct pipe_screen *pscreen,
tile_flags = 0xf900; /* MSAA 4 */
tile_flags = 0xfe00; /* NORMAL */
break;
+ case PIPE_FORMAT_Z32_FLOAT:
+ tile_flags = 0x7b00;
+ break;
case PIPE_FORMAT_Z32_FLOAT_S8X24_USCALED:
tile_flags = 0xce00; /* COMPRESSED */
tile_flags = 0xcf00; /* MSAA 2, COMPRESSED */
More information about the mesa-commit
mailing list