turnip: fix wrong substream size in parse_multisample_and_color_blend
authorJonathan Marek <jonathan@marek.ca>
Tue, 28 Apr 2020 23:54:06 +0000 (19:54 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 20:09:54 +0000 (20:09 +0000)
Missed updating this when adding tu6_emit_sample_locations

Fixes: a92d2e11095 ("turnip: implement VK_EXT_sample_locations")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4795>

src/freedreno/vulkan/tu_pipeline.c

index ff1fb9a16b8b91cffd4293fc5357f3b6b265557e..965cb5af2641644f691b5fd3809612e6e4663db6 100644 (file)
@@ -2457,7 +2457,7 @@ tu_pipeline_builder_parse_multisample_and_color_blend(
                                      : &dummy_blend_info;
 
    struct tu_cs blend_cs;
-   tu_cs_begin_sub_stream(&pipeline->cs, MAX_RTS * 3 + 9, &blend_cs);
+   tu_cs_begin_sub_stream(&pipeline->cs, MAX_RTS * 3 + 18, &blend_cs);
 
    uint32_t blend_enable_mask;
    tu6_emit_rb_mrt_controls(&blend_cs, blend_info,