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:
committed by
Marge Bot
parent
102bd7127b
commit
2cc88430f1
@@ -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 -->
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user