Module: Mesa Branch: main Commit: c81518911243db4ed4baa3bc0eff5bc04ed281b9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c81518911243db4ed4baa3bc0eff5bc04ed281b9
Author: Juan A. Suarez Romero <[email protected]> Date: Sun Apr 30 16:07:34 2023 +0200 v3d: apply 1D texture miplevel alignment in arrays 1D texture miplevels are aligned to 64b, but this should include also texture arrays. Fixes `[email protected]@execution@texelfetchoffset@vs-texelfetch-usampler1darray` and several other piglit tests. CC: mesa-stable Reviewed-by: Alejandro PiƱeiro <[email protected]> Signed-off-by: Juan A. Suarez Romero <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22775> --- src/broadcom/ci/broadcom-rpi4-fails.txt | 51 --------------------------------- src/gallium/drivers/v3d/v3d_resource.c | 3 +- 2 files changed, 2 insertions(+), 52 deletions(-) diff --git a/src/broadcom/ci/broadcom-rpi4-fails.txt b/src/broadcom/ci/broadcom-rpi4-fails.txt index a6edf18ae6e..dd69818e80b 100644 --- a/src/broadcom/ci/broadcom-rpi4-fails.txt +++ b/src/broadcom/ci/broadcom-rpi4-fails.txt @@ -33,11 +33,6 @@ spec@!opengl 1.1@depthstencil-default_fb-drawpixels-24_8 samples=2,Fail spec@!opengl 1.1@depthstencil-default_fb-drawpixels-24_8 samples=4,Fail spec@!opengl 1.1@depthstencil-default_fb-drawpixels-32f_24_8_rev samples=2,Fail spec@!opengl 1.1@depthstencil-default_fb-drawpixels-float-and-ushort samples=2,Fail -spec@!opengl 1.1@getteximage-depth,Fail -spec@!opengl 1.1@getteximage-depth@GL_TEXTURE_1D_ARRAY-GL_DEPTH_COMPONENT,Fail -spec@!opengl 1.1@getteximage-depth@GL_TEXTURE_1D_ARRAY-GL_DEPTH_COMPONENT16,Fail -spec@!opengl 1.1@getteximage-depth@GL_TEXTURE_1D_ARRAY-GL_DEPTH_COMPONENT24,Fail -spec@!opengl 1.1@getteximage-depth@GL_TEXTURE_1D_ARRAY-GL_DEPTH_COMPONENT32,Fail spec@!opengl 1.1@getteximage-formats,Fail spec@!opengl 1.1@linestipple,Fail spec@!opengl 1.1@linestipple@Factor 2x,Fail @@ -330,18 +325,6 @@ spec@ext_framebuffer_multisample@interpolation 2 centroid-edges,Fail spec@ext_framebuffer_multisample@interpolation 4 centroid-edges,Fail spec@ext_framebuffer_object@getteximage-formats init-by-clear-and-render,Fail spec@ext_framebuffer_object@getteximage-formats init-by-rendering,Fail -spec@ext_gpu_shader4@execution@texelfetch@fs-texelfetch-isampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetch@fs-texelfetch-sampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetch@fs-texelfetch-usampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetch@vs-texelfetch-isampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetch@vs-texelfetch-sampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetch@vs-texelfetch-usampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetchoffset@fs-texelfetch-isampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetchoffset@fs-texelfetch-sampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetchoffset@fs-texelfetch-usampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetchoffset@vs-texelfetch-isampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetchoffset@vs-texelfetch-sampler1darray,Fail -spec@ext_gpu_shader4@execution@texelfetchoffset@vs-texelfetch-usampler1darray,Fail spec@ext_gpu_shader4@tex-miplevel-selection gpu4texture() 1darray,Fail spec@ext_gpu_shader4@tex-miplevel-selection gpu4texture() 1darrayshadow,Fail spec@ext_gpu_shader4@tex-miplevel-selection gpu4texture() cubeshadow,Fail @@ -384,8 +367,6 @@ spec@ext_packed_depth_stencil@texwrap formats offset@GL_DEPTH24_STENCIL8- NPOT,F spec@ext_packed_depth_stencil@texwrap formats,Fail spec@ext_packed_depth_stencil@texwrap formats@GL_DEPTH24_STENCIL8- NPOT,Fail spec@ext_packed_float@query-rgba-signed-components,Fail -spec@ext_texture_array@fbo-generatemipmap-array rgb9_e5,Fail -spec@ext_texture_array@fbo-generatemipmap-array,Fail spec@ext_texture_integer@fbo-blending,Fail spec@ext_texture_integer@getteximage-clamping gl_arb_texture_rg,Fail spec@ext_texture_integer@getteximage-clamping,Fail @@ -448,38 +429,6 @@ [email protected]@built-in constants,Fail [email protected]@built-in constants@gl_MaxDrawBuffers,Fail [email protected]@execution@clipping@fs-clip-distance-interpolated,Crash [email protected]@execution@clipping@vs-clip-distance-primitives,Fail [email protected]@execution@tex-miplevel-selection texture() 1darray,Fail [email protected]@execution@tex-miplevel-selection texture() 1darrayshadow,Fail [email protected]@execution@tex-miplevel-selection texture(bias) 1darray,Fail [email protected]@execution@tex-miplevel-selection texture(bias) 1darrayshadow,Fail [email protected]@execution@tex-miplevel-selection texturegrad 1darray,Fail [email protected]@execution@tex-miplevel-selection texturegrad 1darrayshadow,Fail [email protected]@execution@tex-miplevel-selection texturegradoffset 1darray,Fail [email protected]@execution@tex-miplevel-selection texturegradoffset 1darrayshadow,Fail [email protected]@execution@tex-miplevel-selection texturelod 1darray,Fail [email protected]@execution@tex-miplevel-selection texturelod 1darrayshadow,Fail [email protected]@execution@tex-miplevel-selection texturelodoffset 1darray,Fail [email protected]@execution@tex-miplevel-selection texturelodoffset 1darrayshadow,Fail [email protected]@execution@tex-miplevel-selection textureoffset 1darray,Fail [email protected]@execution@tex-miplevel-selection textureoffset 1darrayshadow,Fail [email protected]@execution@tex-miplevel-selection textureoffset(bias) 1darray,Fail [email protected]@execution@tex-miplevel-selection textureoffset(bias) 1darrayshadow,Fail [email protected]@execution@texelfetch fs sampler1darray 1x281-501x281,Fail [email protected]@execution@texelfetch fs sampler1darray 1x71-501x71,Fail [email protected]@execution@texelfetch fs sampler1darray 281x1-281x281,Fail [email protected]@execution@texelfetch fs sampler1darray 71x1-71x281,Fail [email protected]@execution@texelfetch@fs-texelfetch-isampler1darray,Fail [email protected]@execution@texelfetch@fs-texelfetch-sampler1darray,Fail [email protected]@execution@texelfetch@fs-texelfetch-usampler1darray,Fail [email protected]@execution@texelfetch@vs-texelfetch-isampler1darray,Fail [email protected]@execution@texelfetch@vs-texelfetch-sampler1darray,Fail [email protected]@execution@texelfetch@vs-texelfetch-usampler1darray,Fail [email protected]@execution@texelfetchoffset@fs-texelfetch-isampler1darray,Fail [email protected]@execution@texelfetchoffset@fs-texelfetch-sampler1darray,Fail [email protected]@execution@texelfetchoffset@fs-texelfetch-usampler1darray,Fail [email protected]@execution@texelfetchoffset@vs-texelfetch-isampler1darray,Fail [email protected]@execution@texelfetchoffset@vs-texelfetch-sampler1darray,Fail [email protected]@execution@texelfetchoffset@vs-texelfetch-usampler1darray,Fail [email protected]@built-in constants,Fail [email protected]@built-in constants@gl_MaxDrawBuffers,Fail spec@intel_performance_query@intel_performance_query-issue_2235,Fail diff --git a/src/gallium/drivers/v3d/v3d_resource.c b/src/gallium/drivers/v3d/v3d_resource.c index d07f07fab76..1d8b4415a4a 100644 --- a/src/gallium/drivers/v3d/v3d_resource.c +++ b/src/gallium/drivers/v3d/v3d_resource.c @@ -586,7 +586,8 @@ v3d_setup_slices(struct v3d_resource *rsc, uint32_t winsys_stride, if (!rsc->tiled) { slice->tiling = V3D_TILING_RASTER; - if (prsc->target == PIPE_TEXTURE_1D) + if (prsc->target == PIPE_TEXTURE_1D || + prsc->target == PIPE_TEXTURE_1D_ARRAY) level_width = align(level_width, 64 / rsc->cpp); } else { if ((i != 0 || !uif_top) &&
