diff options
author | Jason Ekstrand <[email protected]> | 2019-07-31 15:17:17 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-08-01 21:59:37 +0000 |
commit | 70dc017aec72b80e7fd674b90eec4332807e3619 (patch) | |
tree | 9a9da01015a0584ceeab39ca011bde38ad7e342c /src/mesa/drivers | |
parent | 4e736b88f3bc706b065798bd2296748603070484 (diff) |
nir: Stop whacking gl_FrontFacing to a system value
We have a cap bit for gallium and a GLSL compiler flag to control this.
Just trust what GLSL gives us and stop forcing it. In order for this to
be safe, we have to advertise another cap in some of the gallium
drivers.
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 91053842aa1..957be4006f8 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -622,6 +622,7 @@ brw_initialize_context_constants(struct brw_context *brw) ctx->Const.MaxClipPlanes = 8; ctx->Const.GLSLFragCoordIsSysVal = true; + ctx->Const.GLSLFrontFacingIsSysVal = true; ctx->Const.GLSLTessLevelsAsInputs = true; ctx->Const.PrimitiveRestartForPatches = true; |