mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
mesa: Fix MaxNumLayers for 1D array textures.
1D array targets store the number of slices in the Height field.
Cc: "10.2 10.1 10.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
(cherry picked from commit 5c399ca8e4)
This commit is contained in:
parent
cc92276cb8
commit
e120f1a958
1 changed files with 2 additions and 0 deletions
|
|
@ -1058,6 +1058,8 @@ _mesa_test_framebuffer_completeness(struct gl_context *ctx,
|
|||
if (att->Layered) {
|
||||
if (att_tex_target == GL_TEXTURE_CUBE_MAP)
|
||||
att_layer_count = 6;
|
||||
else if (att_tex_target == GL_TEXTURE_1D_ARRAY)
|
||||
att_layer_count = att->Renderbuffer->Height;
|
||||
else
|
||||
att_layer_count = att->Renderbuffer->Depth;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue