tu: fix rast state allocation size on a6xx gen4
A few regs were added without changing the size of draw state.
Fixes: 4e05338d99
("turnip: Rast updates for a6xx gen4")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13644>
This commit is contained in:

committed by
Marge Bot

parent
675519f1d0
commit
79fcd63bd6
@@ -2779,7 +2779,9 @@ tu_pipeline_builder_parse_rasterization(struct tu_pipeline_builder *builder,
|
||||
}
|
||||
|
||||
struct tu_cs cs;
|
||||
uint32_t cs_size = 9 + (builder->emit_msaa_state ? 11 : 0);
|
||||
uint32_t cs_size = 9 +
|
||||
(builder->device->physical_device->info->a6xx.has_shading_rate ? 8 : 0) +
|
||||
(builder->emit_msaa_state ? 11 : 0);
|
||||
pipeline->rast_state = tu_cs_draw_state(&pipeline->cs, &cs, cs_size);
|
||||
|
||||
tu_cs_emit_regs(&cs,
|
||||
|
Reference in New Issue
Block a user