asahi: rename Null layout

this isn't a Null layout only, it's also used with sparse. update the name to
reduce confusion. Unsure if we have a use case yet but maybe as an optimization
later?

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33682>
This commit is contained in:
Alyssa Rosenzweig
2025-01-09 15:22:56 -05:00
committed by Marge Bot
parent 102bd7127b
commit 2cc88430f1
2 changed files with 4 additions and 4 deletions

View File

@@ -77,8 +77,8 @@
<enum name="Layout">
<value name="Linear" value="0"/>
<!-- Default layout if no other layout is set -->
<value name="Null" value="1"/>
<!-- Needs investigation, blob uses this with sparse -->
<value name="Tiled" value="1"/>
<!-- Morton order -->
<value name="Twiddled" value="2"/>
<!-- With a metadata buffer -->

View File

@@ -172,7 +172,7 @@ static void
agx_set_null_texture(struct agx_texture_packed *tex, uint64_t valid_address)
{
agx_pack(tex, TEXTURE, cfg) {
cfg.layout = AGX_LAYOUT_NULL;
cfg.layout = AGX_LAYOUT_TILED;
cfg.channels = AGX_CHANNELS_R8;
cfg.type = AGX_TEXTURE_TYPE_UNORM /* don't care */;
cfg.swizzle_r = AGX_CHANNEL_0;
@@ -191,7 +191,7 @@ agx_set_null_pbe(struct agx_pbe_packed *pbe, uint64_t sink)
cfg.width = 1;
cfg.height = 1;
cfg.levels = 1;
cfg.layout = AGX_LAYOUT_NULL;
cfg.layout = AGX_LAYOUT_TILED;
cfg.channels = AGX_CHANNELS_R8;
cfg.type = AGX_TEXTURE_TYPE_UNORM /* don't care */;
cfg.swizzle_r = AGX_CHANNEL_R;