Re: [Mesa-dev] [PATCH] st/mesa: fix mipmap generation for immutable textures with incomplete pyramids

2015-10-27 Thread Marek Olšák
On Fri, Oct 23, 2015 at 1:28 AM, Nicolai Hähnle wrote: > (This is an alternative to my previous patch, "mesa: clamp MaxLevel for > immutable textures at initialization"; this patch has no opinion about > how the spec should be interpreted.) > > Without the clamping by

[Mesa-dev] [PATCH] st/mesa: fix mipmap generation for immutable textures with incomplete pyramids

2015-10-22 Thread Nicolai Hähnle
(This is an alternative to my previous patch, "mesa: clamp MaxLevel for immutable textures at initialization"; this patch has no opinion about how the spec should be interpreted.) Without the clamping by NumLevels, the state tracker would reallocate the texture storage (incorrect) and even fail