Mesa (main): anv: Use vk_pipeline_shader_stage_is_null()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jul 8 23:15:41 UTC 2022
Module: Mesa
Branch: main
Commit: e9b2862c1ac3861506c15b511f6a6d1661a25e2e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e9b2862c1ac3861506c15b511f6a6d1661a25e2e
Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date: Thu Jul 7 15:08:24 2022 -0500
anv: Use vk_pipeline_shader_stage_is_null()
Reviewed-by: Caio Oliveira <caio.oliveira at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17337>
---
src/intel/vulkan/anv_pipeline.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 22345ed71c5..758afb54057 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -2677,8 +2677,7 @@ anv_pipeline_init_ray_tracing_stages(struct anv_ray_tracing_pipeline *pipeline,
for (uint32_t i = 0; i < info->stageCount; i++) {
const VkPipelineShaderStageCreateInfo *sinfo = &info->pStages[i];
- VK_FROM_HANDLE(vk_shader_module, module, sinfo->module);
- if (module != NULL)
+ if (vk_pipeline_shader_stage_is_null(sinfo))
continue;
int64_t stage_start = os_time_get_nano();
More information about the mesa-commit
mailing list