mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
lib/intel_batchbuffer: igt_ prefix for rendercopy/mediafill funcs
Now everything is prepared to pour some neat api docs over this all. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -298,9 +298,9 @@ intel_batchbuffer_data(struct intel_batchbuffer *batch,
|
||||
*/
|
||||
void
|
||||
intel_blt_copy(struct intel_batchbuffer *batch,
|
||||
drm_intel_bo *src_bo, int src_x1, int src_y1, int src_pitch,
|
||||
drm_intel_bo *dst_bo, int dst_x1, int dst_y1, int dst_pitch,
|
||||
int width, int height, int bpp)
|
||||
drm_intel_bo *src_bo, int src_x1, int src_y1, int src_pitch,
|
||||
drm_intel_bo *dst_bo, int dst_x1, int dst_y1, int dst_pitch,
|
||||
int width, int height, int bpp)
|
||||
{
|
||||
uint32_t src_tiling, dst_tiling, swizzle;
|
||||
uint32_t cmd_bits = 0;
|
||||
@@ -397,9 +397,9 @@ unsigned igt_buf_height(struct igt_buf *buf)
|
||||
return buf->size/buf->stride;
|
||||
}
|
||||
|
||||
render_copyfunc_t get_render_copyfunc(int devid)
|
||||
igt_render_copyfunc_t igt_get_render_copyfunc(int devid)
|
||||
{
|
||||
render_copyfunc_t copy = NULL;
|
||||
igt_render_copyfunc_t copy = NULL;
|
||||
|
||||
if (IS_GEN2(devid))
|
||||
copy = gen2_render_copyfunc;
|
||||
@@ -415,9 +415,9 @@ render_copyfunc_t get_render_copyfunc(int devid)
|
||||
return copy;
|
||||
}
|
||||
|
||||
media_fillfunc_t get_media_fillfunc(int devid)
|
||||
igt_media_fillfunc_t igt_get_media_fillfunc(int devid)
|
||||
{
|
||||
media_fillfunc_t fill = NULL;
|
||||
igt_media_fillfunc_t fill = NULL;
|
||||
|
||||
if (IS_GEN8(devid))
|
||||
fill = gen8_media_fillfunc;
|
||||
|
||||
+12
-12
@@ -209,20 +209,20 @@ struct igt_buf {
|
||||
unsigned igt_buf_width(struct igt_buf *buf);
|
||||
unsigned igt_buf_height(struct igt_buf *buf);
|
||||
|
||||
typedef void (*render_copyfunc_t)(struct intel_batchbuffer *batch,
|
||||
drm_intel_context *context,
|
||||
struct igt_buf *src, unsigned src_x, unsigned src_y,
|
||||
unsigned width, unsigned height,
|
||||
struct igt_buf *dst, unsigned dst_x, unsigned dst_y);
|
||||
typedef void (*igt_render_copyfunc_t)(struct intel_batchbuffer *batch,
|
||||
drm_intel_context *context,
|
||||
struct igt_buf *src, unsigned src_x, unsigned src_y,
|
||||
unsigned width, unsigned height,
|
||||
struct igt_buf *dst, unsigned dst_x, unsigned dst_y);
|
||||
|
||||
render_copyfunc_t get_render_copyfunc(int devid);
|
||||
igt_render_copyfunc_t igt_get_render_copyfunc(int devid);
|
||||
|
||||
typedef void (*media_fillfunc_t)(struct intel_batchbuffer *batch,
|
||||
struct igt_buf *dst,
|
||||
unsigned x, unsigned y,
|
||||
unsigned width, unsigned height,
|
||||
uint8_t color);
|
||||
typedef void (*igt_media_fillfunc_t)(struct intel_batchbuffer *batch,
|
||||
struct igt_buf *dst,
|
||||
unsigned x, unsigned y,
|
||||
unsigned width, unsigned height,
|
||||
uint8_t color);
|
||||
|
||||
media_fillfunc_t get_media_fillfunc(int devid);
|
||||
igt_media_fillfunc_t igt_get_media_fillfunc(int devid);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user