ac/radv/radeonsi: add ac_get_num_physical_sgprs() helper
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -751,7 +751,7 @@ generate_shader_stats(struct radv_device *device,
|
||||
if (conf->num_sgprs)
|
||||
max_simd_waves =
|
||||
MIN2(max_simd_waves,
|
||||
radv_get_num_physical_sgprs(device->physical_device) / conf->num_sgprs);
|
||||
ac_get_num_physical_sgprs(device->physical_device->rad_info.chip_class) / conf->num_sgprs);
|
||||
|
||||
if (conf->num_vgprs)
|
||||
max_simd_waves =
|
||||
@@ -836,7 +836,7 @@ radv_GetShaderInfoAMD(VkDevice _device,
|
||||
VkShaderStatisticsInfoAMD statistics = {};
|
||||
statistics.shaderStageMask = shaderStage;
|
||||
statistics.numPhysicalVgprs = RADV_NUM_PHYSICAL_VGPRS;
|
||||
statistics.numPhysicalSgprs = radv_get_num_physical_sgprs(device->physical_device);
|
||||
statistics.numPhysicalSgprs = ac_get_num_physical_sgprs(device->physical_device->rad_info.chip_class);
|
||||
statistics.numAvailableSgprs = statistics.numPhysicalSgprs;
|
||||
|
||||
if (stage == MESA_SHADER_COMPUTE) {
|
||||
|
Reference in New Issue
Block a user