Module: Mesa Branch: main Commit: 4e05338d99abbf2858a0d8444ffc53028fe23051 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e05338d99abbf2858a0d8444ffc53028fe23051
Author: Rob Clark <[email protected]> Date: Tue Sep 14 09:11:38 2021 -0700 turnip: Rast updates for a6xx gen4 Port of 219e12b7f39 ("freedreno/a6xx: Rast updates for a6xx gen3") Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12856> --- src/freedreno/vulkan/tu_pipeline.c | 7 +++++++ 1 file changed, 7 insertions(+) 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. */
