Module: Mesa Branch: master Commit: a7882013d3e788a76cce638704c02b7bea0e67a1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7882013d3e788a76cce638704c02b7bea0e67a1
Author: Marek Olšák <marek.ol...@amd.com> Date: Thu Nov 16 01:46:40 2017 +0100 mesa: reduce the size of gl_viewport_attrib All drivers convert these to float, so there is no reason to use double. The piglit test that expects double precision from glGet will be adjusted not to require it (there is a piglit patch). gl_context::ViewportArray: 512 -> 384 bytes Reviewed-by: Mathias Fröhlich <mathias.froehl...@web.de> Reviewed-by: Brian Paul <bri...@vmware.com> --- src/mesa/drivers/common/meta.h | 2 +- src/mesa/main/mtypes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h index 1c35ea3e0b..dbe8a9af02 100644 --- a/src/mesa/drivers/common/meta.h +++ b/src/mesa/drivers/common/meta.h @@ -158,7 +158,7 @@ struct save_state /** MESA_META_VIEWPORT */ GLfloat ViewportX, ViewportY, ViewportW, ViewportH; - GLclampd DepthNear, DepthFar; + GLclampf DepthNear, DepthFar; /** MESA_META_CLAMP_FRAGMENT_COLOR */ GLenum ClampFragmentColor; diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index d8cb8f832c..a589bd4bb2 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1407,7 +1407,7 @@ struct gl_viewport_attrib { GLfloat X, Y; /**< position */ GLfloat Width, Height; /**< size */ - GLdouble Near, Far; /**< Depth buffer range */ + GLfloat Near, Far; /**< Depth buffer range */ }; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit