mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
panvk: Make sure the sample_pattern is set in the tiler descriptor
This field should match the one defined in the framebuffer descriptor. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28417>
This commit is contained in:
parent
47a98bbe34
commit
3b6c2cf0f0
1 changed files with 2 additions and 0 deletions
|
|
@ -590,6 +590,7 @@ panvk_per_arch(cmd_get_tiler_context)(struct panvk_cmd_buffer *cmdbuf,
|
|||
unsigned width, unsigned height)
|
||||
{
|
||||
struct panvk_device *dev = to_panvk_device(cmdbuf->vk.base.device);
|
||||
struct pan_fb_info *fbinfo = &cmdbuf->state.fb.info;
|
||||
struct panvk_batch *batch = cmdbuf->state.batch;
|
||||
|
||||
if (batch->tiler.ctx_desc.cpu)
|
||||
|
|
@ -612,6 +613,7 @@ panvk_per_arch(cmd_get_tiler_context)(struct panvk_cmd_buffer *cmdbuf,
|
|||
cfg.fb_width = width;
|
||||
cfg.fb_height = height;
|
||||
cfg.heap = batch->tiler.heap_desc.gpu;
|
||||
cfg.sample_pattern = pan_sample_pattern(fbinfo->nr_samples);
|
||||
}
|
||||
|
||||
memcpy(batch->tiler.heap_desc.cpu, &batch->tiler.heap_templ,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue