summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2021-09-14 09:11:38 -0700
committerMarge Bot <eric+marge@anholt.net>2021-09-20 19:13:25 +0000
commit4e05338d99abbf2858a0d8444ffc53028fe23051 (patch)
tree0de2f89fb3ecff138e880229d61cc9915065450c
parent6ac1d8dc4cb5989efff72e2f1d1eac0dec5b64d3 (diff)
turnip: Rast updates for a6xx gen4
Port of 219e12b7f39 ("freedreno/a6xx: Rast updates for a6xx gen3") Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12856>
-rw-r--r--src/freedreno/vulkan/tu_pipeline.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c
index 2284877d131..6f5f1be1c5f 100644
--- a/src/freedreno/vulkan/tu_pipeline.c
+++ b/src/freedreno/vulkan/tu_pipeline.c
@@ -2768,6 +2768,13 @@ tu_pipeline_builder_parse_rasterization(struct tu_pipeline_builder *builder,
A6XX_GRAS_SU_POINT_MINMAX(.min = 1.0f / 16.0f, .max = 4092.0f),
A6XX_GRAS_SU_POINT_SIZE(1.0f));
+ if (builder->device->physical_device->info->a6xx.has_shading_rate) {
+ tu_cs_emit_regs(&cs, A6XX_RB_UNKNOWN_8A00());
+ tu_cs_emit_regs(&cs, A6XX_RB_UNKNOWN_8A10());
+ tu_cs_emit_regs(&cs, A6XX_RB_UNKNOWN_8A20());
+ tu_cs_emit_regs(&cs, A6XX_RB_UNKNOWN_8A30());
+ }
+
/* If samples count couldn't be devised from the subpass, we should emit it here.
* It happens when subpass doesn't use any color/depth attachment.
*/