According to spec, "[...] if no value was written to PointSize, results
are undefined".
Modified tests:
- dEQP-VK.clipping.clip_volume.{inside,outside,depth_clamp}.point_list
- dEQP-VK.clipping.clip_volume.clipped.large_points
Change-Id: I06ed228a9e4563df15801ff402ed5eac946ac9a6
LINE_ORIENTATION_DIAGONAL,
};
LINE_ORIENTATION_DIAGONAL,
};
-void addProgramsWithPointSize (SourceCollections& programCollection, const float pointSize)
+void addSimplePrograms (SourceCollections& programCollection, const float pointSize = 0.0f)
- const bool usePointSize = pointSize > 1.0f;
+ const bool usePointSize = pointSize > 0.0f;
std::ostringstream src;
src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n"
std::ostringstream src;
src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n"
void initPrograms (SourceCollections& programCollection, const VkPrimitiveTopology topology)
{
void initPrograms (SourceCollections& programCollection, const VkPrimitiveTopology topology)
{
- DE_UNREF(topology);
- addProgramsWithPointSize(programCollection, 1.0f);
+ const float pointSize = (topology == VK_PRIMITIVE_TOPOLOGY_POINT_LIST ? 1.0f : 0.0f);
+ addSimplePrograms(programCollection, pointSize);
}
void initPrograms (SourceCollections& programCollection, const LineOrientation lineOrientation)
{
DE_UNREF(lineOrientation);
}
void initPrograms (SourceCollections& programCollection, const LineOrientation lineOrientation)
{
DE_UNREF(lineOrientation);
- addProgramsWithPointSize(programCollection, 1.0f);
+ addSimplePrograms(programCollection);
}
void initProgramsPointSize (SourceCollections& programCollection)
{
}
void initProgramsPointSize (SourceCollections& programCollection)
{
- addProgramsWithPointSize(programCollection, 0.75f * RENDER_SIZE);
+ addSimplePrograms(programCollection, 0.75f * RENDER_SIZE);
}
//! Primitives fully inside the clip volume.
}
//! Primitives fully inside the clip volume.