anv: remove incorrect polygonMode=point early-out
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 15:25:10 +0000 (16:25 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 1 Nov 2019 07:26:03 +0000 (07:26 +0000)
commitdd77bdb34b6ab13487ce176bd0aa1da4edbb5b0e
tree155ea618bd4853e4c00f8fdefe26774793985c0e
parentc3a46e7644c403890ba872b82731ef3ab5a47834
anv: remove incorrect polygonMode=point early-out

This is incorrect, because polygonMode only applies if the final
primitive type is a polygon; polygonMode doesn't apply to
line-primitives as the comment suggests.

The Vulkan 1.1 spec, section 26.11, "Polygons" defines that polygons are
separate from points and line segments:

" A polygon results from the decomposition of a triangle strip, triangle
  fan or a series of independent triangles. Like points and line segments,
  polygon rasterization is controlled by several variables in the
  VkPipelineRasterizationStateCreateInfo structure. "

Further, section 26.11.2, "Polygon Mode", only define polygonMode to
apply to polygons:

" Possible values of the VkPipelineRasterizationStateCreateInfo::polygonMode
  property of the currently active pipeline, specifying the method of
  rasterization for polygons, are: "

This seems to clearly define that polygonMode doesn't apply to points
and lines, so let's make sure that we don't early out with the wrong
value.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/genX_pipeline.c