[Mesa-stable] [Mesa-dev] [PATCH] i965: Fix textureSize() depth value for 1 layer surfaces on Sandybridge.

Matt Turner mattst88 at gmail.com
Tue Mar 29 23:17:08 UTC 2016


On Tue, Mar 29, 2016 at 9:58 AM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> According to the Sandybridge PRM's description of the resinfo message,
> the .z value returned will be Depth == 0 ? 0 : Depth + 1.
>
> This means we return 0 for array textures with a single slice, when
> we ought to return 1.  Just override it to max(depth, 1).
>
> Fixes 10 dEQP-GLES3.functional tests on Sandybridge:
> shaders.texture_functions.texturesize.sampler2darray_fixed_vertex
> shaders.texture_functions.texturesize.sampler2darray_fixed_fragment
> shaders.texture_functions.texturesize.sampler2darray_float_vertex
> shaders.texture_functions.texturesize.sampler2darray_float_fragment
> shaders.texture_functions.texturesize.isampler2darray_vertex
> shaders.texture_functions.texturesize.isampler2darray_fragment
> shaders.texture_functions.texturesize.usampler2darray_vertex
> shaders.texture_functions.texturesize.usampler2darray_fragment
> shaders.texture_functions.texturesize.sampler2darrayshadow_vertex
> shaders.texture_functions.texturesize.sampler2darrayshadow_fragment
>
> Cc: mesa-stable at lists.freedesktop.org
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

Looks Gen4/5 have the same behavior. Maybe change it to gen <= 6.

Reviewed-by: Matt Turner <mattst88 at gmail.com>


More information about the mesa-stable mailing list