anv: fix GetPipelineExecutableStatistics for ray tracing pipelines

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: e10455585115d5 ("anv: Compile ray-tracing shaders")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18013>
(cherry picked from commit d0e8f21100a4ab6a384e0c75cbe041299832b02d)
This commit is contained in:
Lionel Landwerlin 2022-08-11 16:33:04 +03:00 committed by Dylan Baker
parent 4bbf83a4a8
commit f342f7602a
2 changed files with 9 additions and 1 deletions

View File

@ -12028,7 +12028,7 @@
"description": "anv: fix GetPipelineExecutableStatistics for ray tracing pipelines",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "e10455585115d502702a3f642dfd386d0c7a0c69"
},

View File

@ -3056,6 +3056,14 @@ VkResult anv_GetPipelineExecutableStatisticsKHR(
prog_data = anv_pipeline_to_compute(pipeline)->cs->prog_data;
break;
}
case ANV_PIPELINE_RAY_TRACING: {
struct anv_shader_bin **shader =
util_dynarray_element(&anv_pipeline_to_ray_tracing(pipeline)->shaders,
struct anv_shader_bin *,
pExecutableInfo->executableIndex);
prog_data = (*shader)->prog_data;
break;
}
default:
unreachable("invalid pipeline type");
}