mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
asahi: don't allocate tib space for gaps
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
parent
eadf4cfe1c
commit
99a4d0fcad
1 changed files with 6 additions and 0 deletions
|
|
@ -60,6 +60,12 @@ agx_build_tilebuffer_layout(const enum pipe_format *formats, uint8_t nr_cbufs,
|
|||
for (unsigned rt = 0; rt < nr_cbufs; ++rt) {
|
||||
tib.logical_format[rt] = formats[rt];
|
||||
|
||||
/* If there are gaps in the layout, don't allocate holes. Obscure,
|
||||
* PIPE_FORMAT_NONE has a size of 1, not 0.
|
||||
*/
|
||||
if (formats[rt] == PIPE_FORMAT_NONE)
|
||||
continue;
|
||||
|
||||
/* Require natural alignment for tilebuffer allocations. This could be
|
||||
* optimized, but this shouldn't be a problem in practice.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue