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> (cherry picked from commitd0e8f21100
)
This commit is contained in:

committed by
Dylan Baker

parent
4bbf83a4a8
commit
f342f7602a
@@ -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"
|
||||
},
|
||||
|
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user