mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 14:40:10 +01:00
panfrost: Set tiler descriptor sampler pattern
Bifrost requires this to match the framebuffer descriptor's sample pattern, but we were leaving the default (single-sampled) unconditionally, leading to undefined behaviour. It is unknown if this fixes any user-visible bugs, but without the commit the descriptor is likely out-of-spec. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Cc: 21.0 <mesa-stable@lists.freedesktop.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8774>
This commit is contained in:
parent
b08100fb96
commit
bea7839c1e
1 changed files with 5 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#include "util/format/u_format.h"
|
||||
#include "util/u_pack_color.h"
|
||||
#include "util/rounding.h"
|
||||
#include "util/u_framebuffer.h"
|
||||
#include "pan_util.h"
|
||||
#include "pan_blending.h"
|
||||
#include "pan_cmdstream.h"
|
||||
|
|
@ -700,6 +701,10 @@ panfrost_batch_get_bifrost_tiler(struct panfrost_batch *batch, unsigned vertex_c
|
|||
tiler.fb_width = batch->key.width;
|
||||
tiler.fb_height = batch->key.height;
|
||||
tiler.heap = heap;
|
||||
|
||||
/* Must match framebuffer descriptor */
|
||||
unsigned samples = util_framebuffer_get_num_samples(&batch->key);
|
||||
tiler.sample_pattern = panfrost_sample_pattern(samples);
|
||||
}
|
||||
|
||||
batch->tiler_meta = t.gpu;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue