Revert "i965: Fix depth (array slices) computation for 1D_ARRAY render targets."
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 9 May 2014 21:45:57 +0000 (14:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 10 May 2014 03:08:38 +0000 (20:08 -0700)
This reverts commit e6967270c75a5b669152127bb7a746d55f4407a6.

Chris Forbes pointed out that this is broken for texture views which
restrict the number of slices.  He committed a better fix which makes
this unnecessary.

Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
src/mesa/drivers/dri/i965/gen8_surface_state.c

index 819835d0f70359c7489029cea929dcc1172b165d..5e3d23ea5434e1691755b8846a4aebab2cf8e511 100644 (file)
@@ -461,8 +461,6 @@ gen7_update_renderbuffer_surface(struct brw_context *brw,
 
    GLenum gl_target = rb->TexImage ?
                          rb->TexImage->TexObject->Target : GL_TEXTURE_2D;
-   if (gl_target == GL_TEXTURE_1D_ARRAY)
-      depth = MAX2(rb->Height, 1);
 
    uint32_t surf_index =
       brw->wm.prog_data->binding_table.render_target_start + unit;
index 66b9879974db953dad19d9c682577f2d820bb606..fd9222daa06177ffbebfd814fa7a782fe22fa81a 100644 (file)
@@ -293,9 +293,6 @@ gen8_update_renderbuffer_surface(struct brw_context *brw,
    GLenum gl_target =
       rb->TexImage ? rb->TexImage->TexObject->Target : GL_TEXTURE_2D;
 
-   if (gl_target == GL_TEXTURE_1D_ARRAY)
-      depth = MAX2(rb->Height, 1);
-
    uint32_t surf_index =
       brw->wm.prog_data->binding_table.render_target_start + unit;