gallium: make all checks for PIPE_TEXTURE_2D check for PIPE_TEXTURE_RECT too