mesa/src
Sagar Ghuge 5650d39978 mesa: Add support for AMD_depth_clamp_separate
Enable _mesa_PushAttrib() and _mesa_PopAttrib() to handle
GL_DEPTH_CLAMP_NEAR_AMD and GL_DEPTH_CLAMP_FAR_AMD tokens.

Remove DepthClamp, because DepthClampNear + DepthClampFar replaces it,
as suggested by Marek Olsak.

Driver that enables AMD_depth_clamp_separate will only ever look at
DepthClampNear and DepthClampFar, as suggested by Ian Romanick.

v2: 1) Remove unnecessary parentheses (Marek Olsak)
    2) if AMD_depth_clamp_separate is unsupported, TEST_AND_UPDATE
       GL_DEPTH_CLAMP only (Marek Olsak)
    3) Clamp against near and far plane separately (Marek Olsak)
    4) Clip point separately for near and far Z clipping plane (Marek
       Olsak)

v3: Clamp raster position zw to the range [min(n,f), 0] for near plane
    and [0, max(n,f)] for far plane (Marek Olsak)

v4: Use MIN2 and MAX2 instead of CLAMP (Marek Olsak)

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2018-08-28 12:57:27 -07:00
..
amd Revert "configure: allow building with python3" 2018-08-24 11:14:15 +01:00
broadcom Revert "configure: allow building with python3" 2018-08-24 11:14:15 +01:00
compiler nir: Remove outdated comment 2018-08-28 08:11:03 -07:00
egl egl/drm: use gbm_dri_bo() wrapper 2018-08-24 11:53:24 +01:00
gallium virgl: add debug-switch to output TGSI 2018-08-28 14:13:43 +02:00
gbm gbm: Add support for 10bpp BGR formats 2018-08-01 12:55:37 +01:00
getopt
glx glx: GLX_MESA_multithread_makecurrent is direct-only 2018-08-09 12:33:14 -04:00
gtest autotools: include meson build files in tarball 2018-01-19 16:30:51 -08:00
hgl meson: Add Haiku platform support v4 2018-02-16 16:56:34 -06:00
intel anv: Claim to support depthBounds for ID games 2018-08-28 13:05:54 -05:00
loader loader: add dri_driver option to override dri driver to load 2018-08-17 17:16:32 +01:00
mapi glapi: define AMD_depth_clamp_separate 2018-08-28 12:57:27 -07:00
mesa mesa: Add support for AMD_depth_clamp_separate 2018-08-28 12:57:27 -07:00
util meson: Actually load translation files 2018-08-28 08:51:05 -07:00
vulkan vulkan/alloc: Add a vk_strdup helper 2018-08-28 13:05:54 -05:00
Makefile.am Revert "configure: allow building with python3" 2018-08-24 11:14:15 +01:00
meson.build meson: Build with Python 3 2018-08-10 15:15:09 -07:00
SConscript buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00