Devices, systems and methods for video processing are described. An example method for video processing includes determining, for a conversion between a current block of a video and a bitstream representation of the video, a number of intra-coded neighboring blocks of the current block for a combined inter and intra prediction mode according to a rule that specifies a manner of treating a block coded using a palette coding mode in counting the number of intra-coded neighboring blocks for the combined inter and intra prediction mode. The method also includes performing the conversion based on the determining.