1. A method of coding video data, the method comprising: intra-predicting a block of video data, using values of pixels along a primary boundary of the block, to form a predicted block; determining whether to filter the predicted block using data of a secondary boundary of the block; and filtering the predicted block using data of the secondary boundary in response to determining to filter the predicted block.