mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
util/format: support 256-bit formats in util_format_get_tilesize()
Fixes:eb64ce4386("util: Add a helper for querying sparse tile sizes") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41312> (cherry picked from commit43051547b6)
This commit is contained in:
parent
9351aaeedb
commit
4e1f5ef336
2 changed files with 3 additions and 2 deletions
|
|
@ -1644,7 +1644,7 @@
|
|||
"description": "util/format: support 256-bit formats in util_format_get_tilesize()",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "eb64ce43866b0e87526dcd20807ccdeb5ba17c80",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1375,13 +1375,14 @@ util_format_get_max_channel_size(enum pipe_format format)
|
|||
}
|
||||
}
|
||||
|
||||
static uint32_t blocksizes_64kb[5][6][3] = {
|
||||
static uint32_t blocksizes_64kb[6][6][3] = {
|
||||
/* 3D 2D 1 sample 2D 2 samples 2D 4 samples 2D 8 samples 2D 16 samples) */
|
||||
{ { 64, 32, 32 }, { 256, 256, 1 }, { 128, 256, 1 }, { 128, 128, 1 }, { 64, 128, 1 }, { 64, 64, 1 } }, /* 8 bits */
|
||||
{ { 32, 32, 32 }, { 256, 128, 1 }, { 128, 128, 1 }, { 128, 64, 1 }, { 64, 64, 1 }, { 64, 32, 1 } }, /* 16 bits */
|
||||
{ { 32, 32, 16 }, { 128, 128, 1 }, { 64, 128, 1 }, { 64, 64, 1 }, { 32, 64, 1 }, { 32, 32, 1 } }, /* 32 bits */
|
||||
{ { 32, 16, 16 }, { 128, 64, 1 }, { 64, 64, 1 }, { 64, 32, 1 }, { 32, 32, 1 }, { 32, 16, 1 } }, /* 64 bits */
|
||||
{ { 16, 16, 16 }, { 64, 64, 1 }, { 32, 64, 1 }, { 32, 32, 1 }, { 16, 32, 1 }, { 16, 16, 1 } }, /* 128 bits */
|
||||
{ { 16, 16, 8 }, { 64, 32, 1 }, { 32, 32, 1 }, { 32, 16, 1 }, { 16, 16, 1 }, { 16, 8, 1 } }, /* 256 bits */
|
||||
};
|
||||
|
||||
uint32_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue