/* Write to the head of the buffer and check that the same value can be read.  */
ZTEST(display_read_write, test_write_to_buffer_head)
/* Write to the head of the buffer and check that the same value can be read.  */
ZTEST(display_read_write, test_write_to_buffer_head)
{
	uint8_t data[4] = {0xFA, 0xAF, 0x9F, 0xFA};
	uint8_t height = (is_tiled ? 8 : 1);
	uint16_t width = sizeof(data) / bpp;
	uint16_t buf_size = width * bpp;
	struct display_buffer_descriptor desc = {
		.height = height,
		.pitch = width,
		.width = width,
		.buf_size = buf_size,
	};
	display_write(dev, 0, 0, &desc, data);
	verify_bytes_of_area(data, 0, 0, width, height);
	verify_background_color(0, height, display_width, display_height - height, 0);
	verify_background_color(width, 0, display_width - width, display_height, 0);
}