diff options
author | Tim Rowley <[email protected]> | 2016-06-01 09:56:26 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2016-06-07 11:47:52 -0500 |
commit | 87f0a0448fba898a7ab2a36eed9682ff8c1c6d5c (patch) | |
tree | 0b58bdbd4f96ec9c25a91e900bb4d916d448f40c /src/gallium/drivers/swr/swr_state.cpp | |
parent | c81b090c920f90bf86a34c978e10ff336d1edbc0 (diff) |
swr: fix provoking vertex
Use rasterizer provoking vertex API.
Fix rasterizer provoking vertex for tristrips and quad list/strips.
v2: make provoking vertex tables static const
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_state.cpp')
-rw-r--r-- | src/gallium/drivers/swr/swr_state.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp index f9326f35230..f50537f3a61 100644 --- a/src/gallium/drivers/swr/swr_state.cpp +++ b/src/gallium/drivers/swr/swr_state.cpp @@ -1351,7 +1351,10 @@ swr_update_derived(struct pipe_context *pipe, SWR_BACKEND_STATE backendState = {0}; backendState.numAttributes = 1; backendState.numComponents[0] = 4; - backendState.constantInterpolationMask = ctx->fs->constantMask; + backendState.constantInterpolationMask = + ctx->rasterizer->flatshade ? + ctx->fs->flatConstantMask : + ctx->fs->constantMask; backendState.pointSpriteTexCoordMask = ctx->fs->pointSpriteMask; SwrSetBackendState(ctx->swrContext, &backendState); |