Re: [Mesa-dev] [PATCH 2/4] mesa: add support for GL_EXT_polygon_offset_clamp

2015-01-01 Thread Kenneth Graunke
On Wednesday, December 31, 2014 02:38:12 AM Ilia Mirkin wrote: Nothing enables the extension yet, but the values are now available. The spec calls for it to only be exposed for GL 3.3+, which is core-only in mesa. Restrict it as such so that drivers enabling the extension don't end up

Re: [Mesa-dev] [PATCH 2/3] main: Checking for cube completeness in GetTextureImage.

2015-01-01 Thread Chad Versace
On 12/31/2014 05:26 PM, Laura Ekstrand wrote: This is part of a potential solution to Khronos Bug 13223. Cube completeness is a concept from glGenerateMipmap, but it seems reasonable to check for it in GetTextureImage when the target is GL_TEXTURE_CUBE_MAP. --- src/mesa/main/texgetimage.c |

Re: [Mesa-dev] [PATCH] swrast: Build fix for darwin

2015-01-01 Thread Jeremy Huddleston Sequoia
This is certainly not the best solution to the problem, so I'm just sending this patch to the list to get the discussion started on the best way to solve this problem. Currently, any platform that does not support _SC_PHYS_PAGES and _SC_PAGESIZE will fail to build swrast. _SC_PHYS_PAGES is

[Mesa-dev] [PATCH] swrast: Build fix for darwin

2015-01-01 Thread Jeremy Huddleston Sequoia
Fixes regression from commit 64b1dc44495890cbc2c7c5509cb830264020998c Signed-off-by: Jeremy Huddleston Sequoia jerem...@apple.com CC: Emil Velikov emil.l.veli...@gmail.com CC: jon.tur...@dronecode.org.uk CC: io...@macports.org --- src/mesa/drivers/dri/swrast/swrast.c | 16 1

Re: [Mesa-dev] [PATCH 1/2] i965: Fix BLORP sRGB MSAA overrides to cope with X vs. A formats.

2015-01-01 Thread Chris Forbes
Both of these are also Reviewed-by: Chris Forbes chr...@ijw.co.nz On Jan 1, 2015 7:48 PM, Kenneth Graunke kenn...@whitecape.org wrote: The logic in brw_blorp_surface_info::set uses brw_format_for_mesa_format for source surfaces, and brw-render_target_format[] for destination surfaces. We

[Mesa-dev] [Bug 84023] GLSL compiler bug in uniform buffer load lowering or optimizations

2015-01-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84023 Marek Olšák mar...@gmail.com changed: What|Removed |Added Component|Drivers/Gallium/r600|Mesa core

Re: [Mesa-dev] [PATCH 1/3] main: Added _mesa_cube_level_complete to check for the completeness of an arbitrary cube map level.

2015-01-01 Thread Chad Versace
On 12/31/2014 05:26 PM, Laura Ekstrand wrote: +/** + * Check if the given cube map texture is cube complete as defined in + * the OpenGL specification. + */ +GLboolean +_mesa_cube_complete(const struct gl_texture_object *texObj) +{ + _mesa_cube_level_complete(texObj, texObj-BaseLevel);

[Mesa-dev] [Bug 87913] CPU cacheline size of 0 can be returned by CPUID leaf 0x80000006 in some virtual machines

2015-01-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=87913 --- Comment #4 from Leonid Shatz leonid.sh...@ravellosystems.com --- In virtual environments you would never know which is the safest method. It depends on the implementation and correctness of the hypervisor. I would just add the suggested fix

Re: [Mesa-dev] [PATCH 3/3] main: Checking for cube completeness in TextureSubImage.

2015-01-01 Thread Chad Versace
On 12/31/2014 05:26 PM, Laura Ekstrand wrote: This is part of a potential solution to Khronos Bug 13223. Cube completeness is a concept from glGenerateMipmap, but it seems reasonable to check for it in TextureSubImage when target=GL_TEXTURE_CUBE_MAP. --- src/mesa/main/teximage.c | 42

[Mesa-dev] [Bug 87925] SIGSEGV libX11 src/ImUtil.c:733

2015-01-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=87925 Alan Coopersmith alan.coopersm...@oracle.com changed: What|Removed |Added CC|

Re: [Mesa-dev] [PATCH 2/4] mesa: add support for GL_EXT_polygon_offset_clamp

2015-01-01 Thread Ilia Mirkin
On Thu, Jan 1, 2015 at 4:44 AM, Kenneth Graunke kenn...@whitecape.org wrote: On Wednesday, December 31, 2014 02:38:12 AM Ilia Mirkin wrote: Nothing enables the extension yet, but the values are now available. The spec calls for it to only be exposed for GL 3.3+, which is core-only in mesa.

Re: [Mesa-dev] [PATCH 1/2] i965: Make the precompile ignore DEPTH_TEXTURE_MODE on Gen7.5+.

2015-01-01 Thread Ian Romanick
On 01/01/2015 10:51 PM, Kenneth Graunke wrote: On Thursday, January 01, 2015 10:21:43 PM Ian Romanick wrote: On 12/31/2014 08:04 PM, Kenneth Graunke wrote: Gen7.5+ platforms that support the Shader Channel Select feature leave key-tex.swizzles[i] as SWIZZLE_NOOP except when

Re: [Mesa-dev] [PATCH 1/2] i965: Make the precompile ignore DEPTH_TEXTURE_MODE on Gen7.5+.

2015-01-01 Thread Ian Romanick
On 12/31/2014 08:04 PM, Kenneth Graunke wrote: Gen7.5+ platforms that support the Shader Channel Select feature leave key-tex.swizzles[i] as SWIZZLE_NOOP except when GL_DEPTH_TEXTURE_MODE is GL_ALPHA (which is really uncommon). So, the precompile should leave them as SWIZZLE_NOOP (aka

Re: [Mesa-dev] [PATCH 1/2] glsl: Add define for ARB_shader_precision

2015-01-01 Thread Ian Romanick
On 12/31/2014 12:43 PM, Micah Fedke wrote: This patch does a little more than just add the define. If you change the commit message to something like mesa: Add ARB_shader_precision infrastructure, you get Reviewed-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/glcpp/glcpp-parse.y

Re: [Mesa-dev] [PATCH 1/2] i965: Make the precompile ignore DEPTH_TEXTURE_MODE on Gen7.5+.

2015-01-01 Thread Kenneth Graunke
On Thursday, January 01, 2015 10:21:43 PM Ian Romanick wrote: On 12/31/2014 08:04 PM, Kenneth Graunke wrote: Gen7.5+ platforms that support the Shader Channel Select feature leave key-tex.swizzles[i] as SWIZZLE_NOOP except when GL_DEPTH_TEXTURE_MODE is GL_ALPHA (which is really uncommon).

Re: [Mesa-dev] [PATCH 2/2] glapi: Add (empty) glapi for ARB_shader_precision

2015-01-01 Thread Ian Romanick
If an extension doesn't add any enums or functions, I don't think we usually bother adding it, but meh. One nit below... On 12/31/2014 12:43 PM, Micah Fedke wrote: --- src/mapi/glapi/gen/gl_API.xml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git