[Mesa-dev] [PATCH] i965/gen5+: Fix incorrect miptree layout for non-power-of-two cubemaps.

2011-07-30 Thread Kenneth Graunke
For power-of-two sizes, h0 == mt->height0 since it's already a multiple of two. However, for NPOT, they're different; h1 should be computed based on the original size. Fixes piglit test "cubemap npot" and oglconform_31 test "textureNPOT". NOTE: This is a candidate for stable release branches. S

[Mesa-dev] [PATCH] mesa: In validate_program(), initialize errMsg for safety.

2011-07-30 Thread Kenneth Graunke
validate_program relies on validate_shader_program to fill in errMsg; empirically, there exist cases where that doesn't happen. While tracking those down may be worthwhile, initializing the string so we don't try to ralloc_strdup random garbage also seems wise. Fixes issues caught by valgrind whi

[Mesa-dev] PUSHED [v2 PATCH 0/5] Fix implicit type conversion errors

2011-07-30 Thread Chad Versace
Pushed. On 07/29/2011 06:58 PM, Chad Versace wrote: > Fix implicit type conversion errors > > Fixes Piglit tests: > spec/glsl-1.20/compiler/built-in-functions/outerProduct-bvec*.vert > > spec/glsl-1.20/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bool-float.v