With version 0.6.2, patches can be 32768 x 32768. Prior to that version, patches could only be up to 254 pixels high. Keep in mind that if you go beyond that, your textures will have tutti-frutti issues in some other non-ZDoom based ports like Chocolate Doom, if that's a concern to you.