mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
lib: make media_fill.h an internal header
Same deal as with rendercopy.h. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -22,7 +22,6 @@ libintel_tools_la_SOURCES = \
|
||||
intel_reg.h \
|
||||
ioctl_wrappers.c \
|
||||
ioctl_wrappers.h \
|
||||
media_fill.c \
|
||||
media_fill.h \
|
||||
media_fill_gen7.c \
|
||||
media_fill_gen8.c \
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "intel_chipset.h"
|
||||
#include "intel_reg.h"
|
||||
#include "rendercopy.h"
|
||||
#include "media_fill.h"
|
||||
#include <i915_drm.h>
|
||||
|
||||
/**
|
||||
@@ -403,3 +404,15 @@ render_copyfunc_t get_render_copyfunc(int devid)
|
||||
|
||||
return copy;
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
return fill;
|
||||
}
|
||||
|
||||
@@ -224,4 +224,12 @@ typedef void (*render_copyfunc_t)(struct intel_batchbuffer *batch,
|
||||
|
||||
render_copyfunc_t get_render_copyfunc(int devid);
|
||||
|
||||
typedef void (*media_fillfunc_t)(struct intel_batchbuffer *batch,
|
||||
struct scratch_buf *dst,
|
||||
unsigned x, unsigned y,
|
||||
unsigned width, unsigned height,
|
||||
uint8_t color);
|
||||
|
||||
media_fillfunc_t get_media_fillfunc(int devid);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
#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;
|
||||
|
||||
return fill;
|
||||
}
|
||||
@@ -19,14 +19,6 @@
|
||||
#include "intel_batchbuffer.h"
|
||||
#include "intel_gpu_tools.h"
|
||||
|
||||
typedef void (*media_fillfunc_t)(struct intel_batchbuffer *batch,
|
||||
struct scratch_buf *dst,
|
||||
unsigned x, unsigned y,
|
||||
unsigned width, unsigned height,
|
||||
uint8_t color);
|
||||
|
||||
media_fillfunc_t get_media_fillfunc(int devid);
|
||||
|
||||
void
|
||||
gen8_media_fillfunc(struct intel_batchbuffer *batch,
|
||||
struct scratch_buf *dst,
|
||||
|
||||
Reference in New Issue
Block a user