radv: export the pipeline hash via VK_KHR_pipeline_executable_properties
This will help to match RGP<->Fossilize pipelines. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15279>
This commit is contained in:
committed by
Marge Bot
parent
c4cf92cad7
commit
1dfee91fdf
@@ -6709,6 +6709,14 @@ radv_GetPipelineExecutableStatisticsKHR(VkDevice _device,
|
||||
VkPipelineExecutableStatisticKHR *end = s + (pStatistics ? *pStatisticCount : 0);
|
||||
VkResult result = VK_SUCCESS;
|
||||
|
||||
if (s < end) {
|
||||
desc_copy(s->name, "Driver pipeline hash");
|
||||
desc_copy(s->description, "Driver pipeline hash used by RGP");
|
||||
s->format = VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_UINT64_KHR;
|
||||
s->value.u64 = pipeline->pipeline_hash;
|
||||
}
|
||||
++s;
|
||||
|
||||
if (s < end) {
|
||||
desc_copy(s->name, "SGPRs");
|
||||
desc_copy(s->description, "Number of SGPR registers allocated per subgroup");
|
||||
|
||||
Reference in New Issue
Block a user