|
|
|
@@ -4791,7 +4791,13 @@ radv_pipeline_init(struct radv_pipeline *pipeline, |
|
|
|
} |
|
|
|
|
|
|
|
struct radv_pipeline_key key = radv_generate_graphics_pipeline_key(pipeline, pCreateInfo, &blend, has_view_index); |
|
|
|
radv_create_shaders(pipeline, device, cache, &key, pStages, pCreateInfo->flags, pipeline_feedback, stage_feedbacks); |
|
|
|
if (radv_device_use_secure_compile(device->instance)) { |
|
|
|
radv_secure_compile(pipeline, device, &key, pStages, pCreateInfo->flags, pCreateInfo->stageCount); |
|
|
|
/* TODO: should we actualy return failure ??? */ |
|
|
|
return VK_SUCCESS; |
|
|
|
} else { |
|
|
|
radv_create_shaders(pipeline, device, cache, &key, pStages, pCreateInfo->flags, pipeline_feedback, stage_feedbacks); |
|
|
|
} |
|
|
|
|
|
|
|
pipeline->graphics.spi_baryc_cntl = S_0286E0_FRONT_FACE_ALL_BITS(1); |
|
|
|
radv_pipeline_init_multisample_state(pipeline, &blend, pCreateInfo); |
|
|
|
@@ -5049,7 +5055,15 @@ static VkResult radv_compute_pipeline_create( |
|
|
|
stage_feedbacks[MESA_SHADER_COMPUTE] = &creation_feedback->pPipelineStageCreationFeedbacks[0]; |
|
|
|
|
|
|
|
pStages[MESA_SHADER_COMPUTE] = &pCreateInfo->stage; |
|
|
|
radv_create_shaders(pipeline, device, cache, &(struct radv_pipeline_key) {0}, pStages, pCreateInfo->flags, pipeline_feedback, stage_feedbacks); |
|
|
|
|
|
|
|
if (radv_device_use_secure_compile(device->instance)) { |
|
|
|
radv_secure_compile(pipeline, device, &(struct radv_pipeline_key) {0}, pStages, pCreateInfo->flags, 1); |
|
|
|
*pPipeline = radv_pipeline_to_handle(pipeline); |
|
|
|
/* TODO: should we actualy return failure ??? */ |
|
|
|
return VK_SUCCESS; |
|
|
|
} else { |
|
|
|
radv_create_shaders(pipeline, device, cache, &(struct radv_pipeline_key) {0}, pStages, pCreateInfo->flags, pipeline_feedback, stage_feedbacks); |
|
|
|
} |
|
|
|
|
|
|
|
pipeline->user_data_0[MESA_SHADER_COMPUTE] = radv_pipeline_stage_to_user_data_0(pipeline, MESA_SHADER_COMPUTE, device->physical_device->rad_info.chip_class); |
|
|
|
pipeline->need_indirect_descriptor_sets |= pipeline->shaders[MESA_SHADER_COMPUTE]->info.need_indirect_descriptor_sets; |