From 20f6c7a9134062b6e16f7a5bd16c197cc2055e9b Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 29 May 2020 16:06:39 -0400 Subject: [PATCH] panfrost: Preload gl_FragCoord on Bifrost It's a precoloured register but we do need to specify in the cmdstream that we want the preloading to happen. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 0a3bbc97688..14d013f08c9 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -338,8 +338,11 @@ panfrost_shader_meta_init(struct panfrost_context *ctx, meta->bifrost1.uniform_buffer_count = panfrost_ubo_count(ctx, st); if (st == PIPE_SHADER_VERTEX) meta->bifrost2.preload_regs = 0xC0; - else + else { meta->bifrost2.preload_regs = 0x1; + SET_BIT(meta->bifrost2.preload_regs, 0x10, ss->reads_frag_coord); + } + meta->bifrost2.uniform_count = MIN2(ss->uniform_count, ss->uniform_cutoff); } else { -- 2.30.2