asahi: Rename 'Render Target' to 'PBE'

It's used for all PBE operations, including regular image writes, so use the
more general name. Compare the powervr driver.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23998>
This commit is contained in:
Alyssa Rosenzweig
2023-05-19 13:05:39 -04:00
committed by Marge Bot
parent 75b5bf8dbc
commit 6dc6991930
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -196,7 +196,7 @@
<value name="4" value="1"/>
</enum>
<struct name="Render Target" size="24">
<struct name="PBE" size="24">
<field name="Dimension" size="4" start="0" type="Texture dimension" default="2D"/>
<field name="Layout" size="2" start="4" type="Layout"/>
<field name="Channels" size="7" start="6" type="Channels"/>
+1 -1
View File
@@ -376,7 +376,7 @@ agxdecode_usc(const uint8_t *map, UNUSED uint64_t *link, UNUSED bool verbose,
for (unsigned i = 0; i < temp.count; ++i) {
agx_unpack(agxdecode_dump_stream, tex, TEXTURE, t);
DUMP_CL(TEXTURE, tex, "Texture");
DUMP_CL(RENDER_TARGET, tex, "Render target");
DUMP_CL(PBE, tex, "PBE");
tex += AGX_TEXTURE_LENGTH;
}
+2 -3
View File
@@ -1097,10 +1097,9 @@ agx_batch_upload_pbe(struct agx_batch *batch, unsigned rt)
assert(surf->u.tex.last_layer == layer);
struct agx_ptr T =
agx_pool_alloc_aligned(&batch->pool, AGX_RENDER_TARGET_LENGTH, 256);
struct agx_ptr T = agx_pool_alloc_aligned(&batch->pool, AGX_PBE_LENGTH, 256);
agx_pack(T.cpu, RENDER_TARGET, cfg) {
agx_pack(T.cpu, PBE, cfg) {
cfg.dimension = agx_translate_tex_dim(PIPE_TEXTURE_2D,
util_res_sample_count(&tex->base));
cfg.layout = agx_translate_layout(tex->layout.tiling);