panfrost: Extend pan_fb_info to allow passing pre/post frame DCDs

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10033>
This commit is contained in:
Boris Brezillon 2021-04-07 15:39:10 +02:00 committed by Marge Bot
parent c52c3e2424
commit c5d6abae5b
2 changed files with 15 additions and 0 deletions

View File

@ -575,6 +575,10 @@ pan_emit_bifrost_mfbd_params(const struct panfrost_device *dev,
pan_section_pack(fbd, MULTI_TARGET_FRAMEBUFFER, BIFROST_PARAMETERS, params) {
params.sample_locations =
panfrost_sample_positions(dev, pan_sample_pattern(fb->nr_samples));
params.pre_frame_0 = fb->bifrost.pre_post.modes[0];
params.pre_frame_1 = fb->bifrost.pre_post.modes[1];
params.post_frame = fb->bifrost.pre_post.modes[2];
params.frame_shader_dcds = fb->bifrost.pre_post.dcds.gpu;
}
}

View File

@ -93,6 +93,13 @@ struct pan_tls_info {
} wls;
};
struct pan_fb_bifrost_info {
struct {
struct panfrost_ptr dcds;
enum mali_pre_post_frame_shader_mode modes[3];
} pre_post;
};
struct pan_fb_info {
unsigned width, height;
struct {
@ -107,6 +114,10 @@ struct pan_fb_info {
unsigned stride;
mali_ptr base;
} tile_map;
union {
struct pan_fb_bifrost_info bifrost;
};
};
unsigned