mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 06:40:32 +01:00
nv50,nvc0: add correct storage type for Z32_FLOAT
This commit is contained in:
parent
cad17554c4
commit
c011f94b7b
2 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue