pan/texture: s/pan_texture_emit/pan_sampled_texture_emit/
Reflect the expected usage in the function name. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com> Acked-by: Eric R. Smith <eric.smith@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34767>
This commit is contained in:
@@ -1814,7 +1814,7 @@ panfrost_create_sampler_view_bo(struct panfrost_sampler_view *so,
|
||||
iview.astc.narrow = true;
|
||||
}
|
||||
|
||||
GENX(pan_texture_emit)(&iview, tex, &payload);
|
||||
GENX(pan_sampled_texture_emit)(&iview, tex, &payload);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -947,7 +947,7 @@ pan_preload_emit_textures(struct pan_pool *pool, const struct pan_fb_info *fb,
|
||||
GENX(pan_texture_estimate_payload_size)(views[i]);
|
||||
struct pan_ptr surfaces = pan_pool_alloc_aligned(pool, payload_size, 64);
|
||||
|
||||
GENX(pan_texture_emit)(views[i], texture, &surfaces);
|
||||
GENX(pan_sampled_texture_emit)(views[i], texture, &surfaces);
|
||||
}
|
||||
|
||||
return textures.gpu;
|
||||
@@ -964,7 +964,7 @@ pan_preload_emit_textures(struct pan_pool *pool, const struct pan_fb_info *fb,
|
||||
.gpu = texture.gpu + pan_size(TEXTURE),
|
||||
};
|
||||
|
||||
GENX(pan_texture_emit)(views[i], texture.cpu, &surfaces);
|
||||
GENX(pan_sampled_texture_emit)(views[i], texture.cpu, &surfaces);
|
||||
textures[i] = texture.gpu;
|
||||
}
|
||||
|
||||
|
||||
@@ -797,9 +797,9 @@ pan_texture_get_extent(const struct pan_image_view *iview,
|
||||
* consists of a 32-byte header followed by pointers.
|
||||
*/
|
||||
void
|
||||
GENX(pan_texture_emit)(const struct pan_image_view *iview,
|
||||
struct mali_texture_packed *out,
|
||||
const struct pan_ptr *payload)
|
||||
GENX(pan_sampled_texture_emit)(const struct pan_image_view *iview,
|
||||
struct mali_texture_packed *out,
|
||||
const struct pan_ptr *payload)
|
||||
{
|
||||
const struct util_format_description *desc =
|
||||
util_format_description(iview->format);
|
||||
|
||||
@@ -48,9 +48,9 @@ void GENX(pan_texture_afbc_reswizzle)(struct pan_image_view *iview);
|
||||
unsigned
|
||||
GENX(pan_texture_estimate_payload_size)(const struct pan_image_view *iview);
|
||||
|
||||
void GENX(pan_texture_emit)(const struct pan_image_view *iview,
|
||||
struct mali_texture_packed *out,
|
||||
const struct pan_ptr *payload);
|
||||
void GENX(pan_sampled_texture_emit)(const struct pan_image_view *iview,
|
||||
struct mali_texture_packed *out,
|
||||
const struct pan_ptr *payload);
|
||||
|
||||
#if PAN_ARCH >= 9
|
||||
void GENX(pan_storage_texture_emit)(const struct pan_image_view *iview,
|
||||
|
||||
@@ -117,7 +117,7 @@ panvk_per_arch(CreateBufferView)(VkDevice _device,
|
||||
.cpu = panvk_priv_mem_host_addr(view->mem),
|
||||
};
|
||||
|
||||
GENX(pan_texture_emit)(&pview, &view->descs.tex, &ptr);
|
||||
GENX(pan_sampled_texture_emit)(&pview, &view->descs.tex, &ptr);
|
||||
}
|
||||
|
||||
#if PAN_ARCH <= 7
|
||||
|
||||
@@ -171,7 +171,7 @@ prepare_tex_descs(struct panvk_image_view *view)
|
||||
pview.planes[0] = view->pview.planes[plane];
|
||||
pview.format = vk_format_to_pipe_format(plane_format);
|
||||
|
||||
GENX(pan_texture_emit)(&pview, &view->descs.tex[plane], &ptr);
|
||||
GENX(pan_sampled_texture_emit)(&pview, &view->descs.tex[plane], &ptr);
|
||||
#if PAN_ARCH >= 9
|
||||
if (view->vk.usage & VK_IMAGE_USAGE_STORAGE_BIT) {
|
||||
GENX(pan_storage_texture_emit)(
|
||||
@@ -185,7 +185,7 @@ prepare_tex_descs(struct panvk_image_view *view)
|
||||
ptr.gpu += tex_payload_size;
|
||||
}
|
||||
} else {
|
||||
GENX(pan_texture_emit)(&pview, &view->descs.tex[0], &ptr);
|
||||
GENX(pan_sampled_texture_emit)(&pview, &view->descs.tex[0], &ptr);
|
||||
#if PAN_ARCH >= 9
|
||||
if (view->vk.usage & VK_IMAGE_USAGE_STORAGE_BIT)
|
||||
GENX(pan_storage_texture_emit)(&pview, &view->descs.storage_tex[0],
|
||||
@@ -217,7 +217,8 @@ prepare_tex_descs(struct panvk_image_view *view)
|
||||
ptr.cpu += tex_payload_size;
|
||||
ptr.gpu += tex_payload_size;
|
||||
|
||||
GENX(pan_texture_emit)(&pview, &view->descs.zs.other_aspect_tex, &ptr);
|
||||
GENX(pan_sampled_texture_emit)(&pview, &view->descs.zs.other_aspect_tex,
|
||||
&ptr);
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user