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:
parent
c52c3e2424
commit
c5d6abae5b
|
@ -575,6 +575,10 @@ pan_emit_bifrost_mfbd_params(const struct panfrost_device *dev,
|
||||||
pan_section_pack(fbd, MULTI_TARGET_FRAMEBUFFER, BIFROST_PARAMETERS, params) {
|
pan_section_pack(fbd, MULTI_TARGET_FRAMEBUFFER, BIFROST_PARAMETERS, params) {
|
||||||
params.sample_locations =
|
params.sample_locations =
|
||||||
panfrost_sample_positions(dev, pan_sample_pattern(fb->nr_samples));
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,13 @@ struct pan_tls_info {
|
||||||
} wls;
|
} 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 {
|
struct pan_fb_info {
|
||||||
unsigned width, height;
|
unsigned width, height;
|
||||||
struct {
|
struct {
|
||||||
|
@ -107,6 +114,10 @@ struct pan_fb_info {
|
||||||
unsigned stride;
|
unsigned stride;
|
||||||
mali_ptr base;
|
mali_ptr base;
|
||||||
} tile_map;
|
} tile_map;
|
||||||
|
|
||||||
|
union {
|
||||||
|
struct pan_fb_bifrost_info bifrost;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned
|
unsigned
|
||||||
|
|
Loading…
Reference in New Issue