summaryrefslogtreecommitdiff
path: root/lib/media_fill.c
blob: 1d212b809d9f8579a03e34c27b09e99119a8a2d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "i830_reg.h"
#include "media_fill.h"

media_fillfunc_t get_media_fillfunc(int devid)
{
	media_fillfunc_t fill = NULL;

	if (IS_GEN8(devid))
		fill = gen8_media_fillfunc;
	else if (IS_GEN7(devid))
		fill = gen7_media_fillfunc;
	else if (IS_GEN9(devid))
		fill = gen9_media_fillfunc;

	return fill;
}