summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-03-02 16:41:22 -0600
committerTim Rowley <[email protected]>2017-03-05 07:33:49 -0600
commitc3070925578481f8d80cece18a2f0f6cc0fdd407 (patch)
tree3a6534651e55ecee6f004cedb6499b5ac270c3cd /src/gallium
parentf1d728411726fd0bc5baf9746e838f609900836e (diff)
swr: [rasterizer core] fix primID provoking vertex for GS
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/frontend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
index c150c51199f..18728e5f557 100644
--- a/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
@@ -815,7 +815,7 @@ static void GeometryShaderStage(
{
simdvector primIdAttrib[3];
gsPa.Assemble(VERTEX_PRIMID_SLOT, primIdAttrib);
- vPrimId = _simd_castps_si(primIdAttrib[0].x);
+ vPrimId = _simd_castps_si(primIdAttrib[state.frontendState.topologyProvokingVertex].x);
}
else
{
@@ -1682,4 +1682,4 @@ PFN_FE_WORK_FUNC GetProcessDrawFunc(
bool HasRasterization)
{
return TemplateArgUnroller<FEDrawChooser>::GetFunc(IsIndexed, IsCutIndexEnabled, HasTessellation, HasGeometryShader, HasStreamOut, HasRasterization);
-} \ No newline at end of file
+}