diff options
author | Marek Olšák <[email protected]> | 2016-01-02 22:45:10 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-01-08 20:07:15 +0100 |
commit | 8a13ce14fd4e29e4e74322c1a3d548960f7f9bc6 (patch) | |
tree | 8412b7a013a561f2d9ff41661e83b001f5f36ad9 /src/mesa/state_tracker/st_extensions.c | |
parent | c00e534283d26fd66e2f52962cf55435dc7a4597 (diff) |
st/mesa: add support for POSITION and FACE system values
Reviewed-by: Edward O'Callaghan <[email protected]
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 91ad169d786..2a3e52362e4 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -327,6 +327,11 @@ void st_init_limits(struct pipe_screen *screen, c->Program[MESA_SHADER_FRAGMENT].MaxUniformBlocks; assert(c->MaxCombinedUniformBlocks <= MAX_COMBINED_UNIFORM_BUFFERS); } + + c->GLSLFragCoordIsSysVal = + screen->get_param(screen, PIPE_CAP_TGSI_FS_POSITION_IS_SYSVAL); + c->GLSLFrontFacingIsSysVal = + screen->get_param(screen, PIPE_CAP_TGSI_FS_FACE_IS_INTEGER_SYSVAL); } |