mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 18:06:13 +00:00
lib: rename igt_media_fillfunc_t typedef to igt_fillfunc_t
This makes fill function more general to prepare for other fill method using GPGPU pipeline. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
This commit is contained in:
parent
4e5c16c17e
commit
106f0bf965
@ -496,9 +496,9 @@ igt_render_copyfunc_t igt_get_render_copyfunc(int devid)
|
|||||||
* The platform-specific media fill function pointer for the device specified
|
* The platform-specific media fill function pointer for the device specified
|
||||||
* with @devid. Will return NULL when no media fill function is implemented.
|
* with @devid. Will return NULL when no media fill function is implemented.
|
||||||
*/
|
*/
|
||||||
igt_media_fillfunc_t igt_get_media_fillfunc(int devid)
|
igt_fillfunc_t igt_get_media_fillfunc(int devid)
|
||||||
{
|
{
|
||||||
igt_media_fillfunc_t fill = NULL;
|
igt_fillfunc_t fill = NULL;
|
||||||
|
|
||||||
if (IS_GEN9(devid))
|
if (IS_GEN9(devid))
|
||||||
fill = gen9_media_fillfunc;
|
fill = gen9_media_fillfunc;
|
||||||
|
@ -195,7 +195,7 @@ void intel_copy_bo(struct intel_batchbuffer *batch,
|
|||||||
*
|
*
|
||||||
* This is a i-g-t buffer object wrapper structure which augments the baseline
|
* This is a i-g-t buffer object wrapper structure which augments the baseline
|
||||||
* libdrm buffer object with suitable data needed by the render copy and the
|
* libdrm buffer object with suitable data needed by the render copy and the
|
||||||
* media fill functions.
|
* fill functions.
|
||||||
*/
|
*/
|
||||||
struct igt_buf {
|
struct igt_buf {
|
||||||
drm_intel_bo *bo;
|
drm_intel_bo *bo;
|
||||||
@ -240,7 +240,7 @@ typedef void (*igt_render_copyfunc_t)(struct intel_batchbuffer *batch,
|
|||||||
igt_render_copyfunc_t igt_get_render_copyfunc(int devid);
|
igt_render_copyfunc_t igt_get_render_copyfunc(int devid);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* igt_media_fillfunc_t:
|
* igt_fillfunc_t:
|
||||||
* @batch: batchbuffer object
|
* @batch: batchbuffer object
|
||||||
* @dst: destination i-g-t buffer object
|
* @dst: destination i-g-t buffer object
|
||||||
* @x: destination pixel x-coordination
|
* @x: destination pixel x-coordination
|
||||||
@ -249,19 +249,19 @@ igt_render_copyfunc_t igt_get_render_copyfunc(int devid);
|
|||||||
* @height: height of the filled rectangle
|
* @height: height of the filled rectangle
|
||||||
* @color: fill color to use
|
* @color: fill color to use
|
||||||
*
|
*
|
||||||
* This is the type of the per-platform media fill functions. The
|
* This is the type of the per-platform fill functions using media
|
||||||
* platform-specific implementation can be obtained by calling
|
* pipeline. The platform-specific implementation can be obtained
|
||||||
* igt_get_media_fillfunc().
|
* by calling igt_get_media_fillfunc().
|
||||||
*
|
*
|
||||||
* A media fill function will emit a batchbuffer to the kernel which executes
|
* A fill function will emit a batchbuffer to the kernel which executes
|
||||||
* the specified blit fill operation using the media engine.
|
* the specified blit fill operation using the media engine.
|
||||||
*/
|
*/
|
||||||
typedef void (*igt_media_fillfunc_t)(struct intel_batchbuffer *batch,
|
typedef void (*igt_fillfunc_t)(struct intel_batchbuffer *batch,
|
||||||
struct igt_buf *dst,
|
struct igt_buf *dst,
|
||||||
unsigned x, unsigned y,
|
unsigned x, unsigned y,
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
uint8_t color);
|
uint8_t color);
|
||||||
|
|
||||||
igt_media_fillfunc_t igt_get_media_fillfunc(int devid);
|
igt_fillfunc_t igt_get_media_fillfunc(int devid);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -101,7 +101,7 @@ igt_simple_main
|
|||||||
data_t data = {0, };
|
data_t data = {0, };
|
||||||
struct intel_batchbuffer *batch = NULL;
|
struct intel_batchbuffer *batch = NULL;
|
||||||
struct igt_buf dst;
|
struct igt_buf dst;
|
||||||
igt_media_fillfunc_t media_fill = NULL;
|
igt_fillfunc_t media_fill = NULL;
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
data.drm_fd = drm_open_any_render();
|
data.drm_fd = drm_open_any_render();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user