diff options
author | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2016-03-04 22:07:02 -0800 |
---|---|---|
committer | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2016-03-05 13:54:24 -0800 |
commit | 30bbe28b7efc7e6b6fef78ac3233bb7485679d1e (patch) | |
tree | 6b7b405dcf91dd5d9efd0eb2d4bc70bacfcf779c /src/intel/vulkan/gen7_pipeline.c | |
parent | 6139fe9a7790e0946e465f275d3f530552edbcdc (diff) | |
download | external_mesa3d-30bbe28b7efc7e6b6fef78ac3233bb7485679d1e.zip external_mesa3d-30bbe28b7efc7e6b6fef78ac3233bb7485679d1e.tar.gz external_mesa3d-30bbe28b7efc7e6b6fef78ac3233bb7485679d1e.tar.bz2 |
anv: Always use point size from the shader
There is no API for setting the point size and the shader is always
required to set it. Section 24.4:
"If the value written to PointSize is less than or equal to zero, or
if no value was written to PointSize, results are undefined."
As such, we can just always program PointWidthSource to Vertex. This
simplifies anv_pipeline a bit and avoids trouble when we enable the
pipeline cache and don't have writes_point_size in the prog_data.
Diffstat (limited to 'src/intel/vulkan/gen7_pipeline.c')
-rw-r--r-- | src/intel/vulkan/gen7_pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c index 5f480ed..37e4639 100644 --- a/src/intel/vulkan/gen7_pipeline.c +++ b/src/intel/vulkan/gen7_pipeline.c @@ -65,7 +65,7 @@ gen7_emit_rs_state(struct anv_pipeline *pipeline, /* uint32_t AALineDistanceMode; */ /* uint32_t VertexSubPixelPrecisionSelect; */ - .UsePointWidthState = !pipeline->writes_point_size, + .UsePointWidthState = false, .PointWidth = 1.0, .GlobalDepthOffsetEnableSolid = info->depthBiasEnable, .GlobalDepthOffsetEnableWireframe = info->depthBiasEnable, |