mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
anv: fix GetPipelineExecutableStatistics for ray tracing pipelines
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: e104555851 ("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>
This commit is contained in:
parent
468538509f
commit
d0e8f21100
1 changed files with 8 additions and 0 deletions
|
|
@ -3067,6 +3067,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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue