turnip: fix compute shaders crashing after geometry shader change
Fixes: 1af71bee73
("turnip: Set has_gs in ir3_shader_key")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4483>
This commit is contained in:

committed by
Marge Bot

parent
52c8bc0130
commit
d6a8591f72
@@ -574,10 +574,12 @@ tu_shader_compile_options_init(
|
|||||||
const VkGraphicsPipelineCreateInfo *pipeline_info)
|
const VkGraphicsPipelineCreateInfo *pipeline_info)
|
||||||
{
|
{
|
||||||
bool has_gs = false;
|
bool has_gs = false;
|
||||||
for (uint32_t i = 0; i < pipeline_info->stageCount; i++) {
|
if (pipeline_info) {
|
||||||
if (pipeline_info->pStages[i].stage == VK_SHADER_STAGE_GEOMETRY_BIT) {
|
for (uint32_t i = 0; i < pipeline_info->stageCount; i++) {
|
||||||
has_gs = true;
|
if (pipeline_info->pStages[i].stage == VK_SHADER_STAGE_GEOMETRY_BIT) {
|
||||||
break;
|
has_gs = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user