radv: report adjusted LDS size for fragment shaders on GFX11
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16557>
This commit is contained in:

committed by
Marge Bot

parent
2fd5aa79b2
commit
aa439d7f46
@@ -7418,8 +7418,10 @@ radv_GetPipelineExecutableStatisticsKHR(VkDevice _device,
|
||||
struct radv_shader *shader =
|
||||
radv_get_shader_from_executable_index(pipeline, pExecutableInfo->executableIndex, &stage);
|
||||
|
||||
enum amd_gfx_level gfx_level = device->physical_device->rad_info.gfx_level;
|
||||
unsigned lds_increment = gfx_level >= GFX7 ? 512 : 256;
|
||||
const struct radv_physical_device *pdevice = device->physical_device;
|
||||
|
||||
unsigned lds_increment = pdevice->rad_info.gfx_level >= GFX11 && stage == MESA_SHADER_FRAGMENT
|
||||
? 1024 : pdevice->rad_info.lds_encode_granularity;
|
||||
unsigned max_waves = radv_get_max_waves(device, shader, stage);
|
||||
|
||||
VkPipelineExecutableStatisticKHR *s = pStatistics;
|
||||
|
Reference in New Issue
Block a user