mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
pan/texture: s/pan_image_view_get_rt_image/pan_image_view_get_color_plane/
Pick a name that's consistent with pan_image_view_get_plane(). Signed-off-by: Rebecca Mckeever <rebecca.mckeever@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32275>
This commit is contained in:
parent
c0140148f1
commit
5df95a97f1
2 changed files with 7 additions and 7 deletions
|
|
@ -296,7 +296,7 @@ pan_prepare_crc(const struct pan_fb_info *fb, int rt_crc,
|
|||
assert(rt_crc < fb->rt_count);
|
||||
|
||||
const struct pan_image_view *rt = fb->rts[rt_crc].view;
|
||||
const struct pan_image *image = pan_image_view_get_rt_image(rt);
|
||||
const struct pan_image *image = pan_image_view_get_color_plane(rt);
|
||||
const struct pan_image_slice_layout *slice =
|
||||
&image->layout.slices[rt->first_level];
|
||||
|
||||
|
|
@ -467,7 +467,7 @@ pan_rt_init_format(const struct pan_image_view *rt,
|
|||
}
|
||||
|
||||
#if PAN_ARCH >= 10
|
||||
const struct pan_image *image = pan_image_view_get_rt_image(rt);
|
||||
const struct pan_image *image = pan_image_view_get_color_plane(rt);
|
||||
|
||||
if (drm_is_afrc(image->layout.modifier))
|
||||
cfg->afrc.writeback_format = writeback_format;
|
||||
|
|
@ -505,7 +505,7 @@ pan_prepare_rt(const struct pan_fb_info *fb, unsigned layer_idx,
|
|||
return;
|
||||
}
|
||||
|
||||
const struct pan_image *image = pan_image_view_get_rt_image(rt);
|
||||
const struct pan_image *image = pan_image_view_get_color_plane(rt);
|
||||
|
||||
if (!drm_is_afrc(image->layout.modifier))
|
||||
cfg->write_enable = true;
|
||||
|
|
@ -708,7 +708,7 @@ pan_fix_frame_shader_mode(enum mali_pre_post_frame_shader_mode mode,
|
|||
static bool
|
||||
pan_force_clean_write_rt(const struct pan_image_view *rt, unsigned tile_size)
|
||||
{
|
||||
const struct pan_image *image = pan_image_view_get_rt_image(rt);
|
||||
const struct pan_image *image = pan_image_view_get_color_plane(rt);
|
||||
if (!drm_is_afbc(image->layout.modifier))
|
||||
return false;
|
||||
|
||||
|
|
@ -964,7 +964,7 @@ GENX(pan_emit_fbd)(const struct pan_fb_info *fb, unsigned layer_idx,
|
|||
|
||||
if (fb->rt_count && fb->rts[0].view) {
|
||||
const struct pan_image_view *rt = fb->rts[0].view;
|
||||
const struct pan_image *image = pan_image_view_get_rt_image(rt);
|
||||
const struct pan_image *image = pan_image_view_get_color_plane(rt);
|
||||
|
||||
const struct util_format_description *desc =
|
||||
util_format_description(rt->format);
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ pan_image_view_get_nr_samples(const struct pan_image_view *iview)
|
|||
}
|
||||
|
||||
static inline const struct pan_image *
|
||||
pan_image_view_get_rt_image(const struct pan_image_view *iview)
|
||||
pan_image_view_get_color_plane(const struct pan_image_view *iview)
|
||||
{
|
||||
/* We only support rendering to plane 0 */
|
||||
assert(pan_image_view_get_plane(iview, 1) == NULL);
|
||||
|
|
@ -186,7 +186,7 @@ pan_image_view_get_rt_image(const struct pan_image_view *iview)
|
|||
static inline bool
|
||||
pan_image_view_has_crc(const struct pan_image_view *iview)
|
||||
{
|
||||
const struct pan_image *image = pan_image_view_get_rt_image(iview);
|
||||
const struct pan_image *image = pan_image_view_get_color_plane(iview);
|
||||
|
||||
if (!image)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue