mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radv/llvm: Fix reporting LDS stats of tess control shaders.
The LLVM backend forgot to set config->lds_size, which is used
for reporting LDS stats.
Fixes: cf89bdb9ba "radv: align the LDS size in calculate_tess_lds_size()"
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9098>
This commit is contained in:
parent
48f349971f
commit
72c348f85c
1 changed files with 4 additions and 0 deletions
|
|
@ -1232,6 +1232,10 @@ radv_shader_variant_create(struct radv_device *device,
|
|||
unsigned encode_granularity = device->physical_device->rad_info.lds_encode_granularity;
|
||||
config.lds_size = align(rtld_binary.lds_size, encode_granularity) / encode_granularity;
|
||||
}
|
||||
if (!config.lds_size && binary->stage == MESA_SHADER_TESS_CTRL) {
|
||||
/* This is used for reporting LDS statistics */
|
||||
config.lds_size = binary->info.tcs.num_lds_blocks;
|
||||
}
|
||||
|
||||
variant->code_size = rtld_binary.rx_size;
|
||||
variant->exec_size = rtld_binary.exec_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue