diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 3c792fd149a..0f4b35bdd76 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -1228,8 +1228,8 @@ zink_init_screen_caps(struct zink_screen *screen) caps->mesh.max_mesh_output_vertices = screen->info.mesh_props.maxMeshOutputVertices; caps->mesh.max_mesh_output_primitives = screen->info.mesh_props.maxMeshOutputPrimitives; caps->mesh.max_mesh_output_components = screen->info.mesh_props.maxMeshOutputComponents; - caps->mesh.max_mesh_output_layers = screen->info.mesh_props.maxMeshOutputLayers; - caps->mesh.max_mesh_multiview_view_count = screen->info.mesh_props.maxMeshMultiviewViewCount; + caps->mesh.max_mesh_output_layers = MAX2(screen->info.mesh_props.maxMeshOutputLayers, 1); + caps->mesh.max_mesh_multiview_view_count = MAX2(screen->info.mesh_props.maxMeshMultiviewViewCount, 1); caps->mesh.mesh_output_per_vertex_granularity = screen->info.mesh_props.meshOutputPerVertexGranularity; caps->mesh.mesh_output_per_primitive_granularity = screen->info.mesh_props.meshOutputPerPrimitiveGranularity;