nv50,nvc0: add correct storage type for Z32_FLOAT

This commit is contained in:
Christoph Bumiller 2011-07-18 13:48:19 +02:00
parent 9bfb79923f
commit 3b605cb0d6
2 changed files with 6 additions and 0 deletions

View file

@ -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;

View file

@ -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 */