mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
lib/skl: Return the render copy and media fill functions
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> [Ben: Reordered if tree] Signed-off-by: Ben Widawsky <benjamin.widawsky@linux.intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
20e9cf38b7
commit
781a0485ac
@ -481,6 +481,8 @@ igt_render_copyfunc_t igt_get_render_copyfunc(int devid)
|
||||
copy = gen7_render_copyfunc;
|
||||
else if (IS_GEN8(devid))
|
||||
copy = gen8_render_copyfunc;
|
||||
else if (IS_GEN9(devid))
|
||||
copy = gen9_render_copyfunc;
|
||||
|
||||
return copy;
|
||||
}
|
||||
@ -498,7 +500,9 @@ igt_media_fillfunc_t igt_get_media_fillfunc(int devid)
|
||||
{
|
||||
igt_media_fillfunc_t fill = NULL;
|
||||
|
||||
if (IS_BROADWELL(devid))
|
||||
if (IS_GEN9(devid))
|
||||
fill = gen9_media_fillfunc;
|
||||
else if (IS_BROADWELL(devid))
|
||||
fill = gen8_media_fillfunc;
|
||||
else if (IS_GEN7(devid))
|
||||
fill = gen7_media_fillfunc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user