An example method of video processing includes determining, for a conversion between a current block of a current picture of a video and a bitstream of the video, whether to disable a coding tool for the current block; and performing the conversion based on the determining, wherein the coding tool is disabled when a dimension of a reference picture of one or more reference pictures of the current block is different from a dimension of the current picture, or a dimension of a scaling window in a reference picture of one or more reference pictures of the current block is different from a dimension of a scaling window in the current picture.