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>
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;
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;