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",
|
"description": "anv: fix GetPipelineExecutableStatistics for ray tracing pipelines",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "e10455585115d502702a3f642dfd386d0c7a0c69"
|
"because_sha": "e10455585115d502702a3f642dfd386d0c7a0c69"
|
||||||
},
|
},
|
||||||
|
@@ -3056,6 +3056,14 @@ VkResult anv_GetPipelineExecutableStatisticsKHR(
|
|||||||
prog_data = anv_pipeline_to_compute(pipeline)->cs->prog_data;
|
prog_data = anv_pipeline_to_compute(pipeline)->cs->prog_data;
|
||||||
break;
|
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:
|
default:
|
||||||
unreachable("invalid pipeline type");
|
unreachable("invalid pipeline type");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user