mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
i965: don't use NumLayers for 3D textures.
For 3D textures we shouldn't be using NumLayers, we need to get it from the depth. This fixes: GL45-CTS.geometry_shader.layered_framebuffer.clear_call_support Reviewed-by: Eduardo Lima Mitev <elima@igalia.com> Cc: "12.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
1f66a4b689
commit
ff2e569153
1 changed files with 1 additions and 1 deletions
|
|
@ -538,7 +538,7 @@ intel_renderbuffer_update_wrapper(struct brw_context *brw,
|
|||
|
||||
if (!layered) {
|
||||
irb->layer_count = 1;
|
||||
} else if (image->TexObject->NumLayers > 0) {
|
||||
} else if (mt->target != GL_TEXTURE_3D && image->TexObject->NumLayers > 0) {
|
||||
irb->layer_count = image->TexObject->NumLayers;
|
||||
} else {
|
||||
irb->layer_count = mt->level[level].depth / layer_multiplier;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue