diff options
-rw-r--r-- | .pick_status.json | 2 | ||||
-rw-r--r-- | src/gallium/drivers/panfrost/pan_job.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.pick_status.json b/.pick_status.json index c8b87c241fd..ff78137d93d 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2965,7 +2965,7 @@ "description": "panfrost: Set tiler descriptor sampler pattern", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index 27e589f1b01..e175a0658c2 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -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" @@ -696,6 +697,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; |