st/mesa: set pipe_image_view layers correctly for 3D textures