Track move of bufmgr functions to libdrm_intel.
This commit is contained in:
parent
0f804bfa1e
commit
0b4f7b6303
|
|
@ -39,7 +39,7 @@ intel_drv_la_LDFLAGS = -module -avoid-version
|
|||
intel_drv_ladir = @moduledir@/drivers
|
||||
intel_drv_la_LIBADD = -lm ../uxa/libuxa.la
|
||||
if XSERVER_LIBPCIACCESS
|
||||
intel_drv_la_LIBADD += @PCIACCESS_LIBS@
|
||||
intel_drv_la_LIBADD += @PCIACCESS_LIBS@ @DRM_LIBS@ -ldrm_intel
|
||||
endif
|
||||
|
||||
XMODE_SRCS=\
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#ifdef XF86DRM_MODE
|
||||
|
||||
#include "dri_bufmgr.h"
|
||||
#include "intel_bufmgr.h"
|
||||
#include "xf86drmMode.h"
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#endif
|
||||
#include "drmmode_display.h"
|
||||
#endif
|
||||
#include "dri_bufmgr.h"
|
||||
#include "intel_bufmgr.h"
|
||||
#include "i915_drm.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ intel_batch_emit_reloc (I830Ptr pI830,
|
|||
{
|
||||
assert(intel_batch_space(pI830) >= 4);
|
||||
*(uint32_t *)(pI830->batch_ptr + pI830->batch_used) = bo->offset + delta;
|
||||
intel_bo_emit_reloc (pI830->batch_bo, read_domains, write_domains, delta,
|
||||
pI830->batch_used, bo);
|
||||
dri_bo_emit_reloc(pI830->batch_bo, read_domains, write_domains, delta,
|
||||
pI830->batch_used, bo);
|
||||
pI830->batch_used += 4;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1542,7 +1542,7 @@ i830_name_buffer (ScrnInfoPtr pScrn, i830_memory *mem)
|
|||
if (!mem->gem_name)
|
||||
{
|
||||
int ret;
|
||||
ret = intel_bo_flink(mem->bo, &mem->gem_name);
|
||||
ret = dri_bo_flink(mem->bo, &mem->gem_name);
|
||||
if (ret != 0)
|
||||
{
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ i830_bind_memory(ScrnInfoPtr pScrn, i830_memory *mem)
|
|||
|
||||
#ifdef XF86DRI
|
||||
if (mem->bo != NULL) {
|
||||
if (intel_bo_pin (mem->bo, mem->alignment) != 0) {
|
||||
if (dri_bo_pin(mem->bo, mem->alignment) != 0) {
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
|
||||
"Failed to pin %s: %s\n",
|
||||
mem->name, strerror(errno));
|
||||
|
|
@ -214,7 +214,7 @@ i830_unbind_memory(ScrnInfoPtr pScrn, i830_memory *mem)
|
|||
|
||||
#ifdef XF86DRI
|
||||
if (mem->bo != NULL) {
|
||||
if (intel_bo_unpin (mem->bo) == 0) {
|
||||
if (dri_bo_unpin(mem->bo) == 0) {
|
||||
mem->bound = FALSE;
|
||||
/* Give buffer obviously wrong offset/end until it's re-pinned. */
|
||||
mem->offset = -1;
|
||||
|
|
@ -897,7 +897,7 @@ i830_allocate_memory_tiled(ScrnInfoPtr pScrn, const char *name,
|
|||
else
|
||||
tiling_mode = I915_TILING_Y;
|
||||
|
||||
ret = intel_bo_set_tiling (mem->bo, &tiling_mode);
|
||||
ret = dri_bo_set_tiling(mem->bo, &tiling_mode);
|
||||
if (ret != 0 || tiling_mode == I915_TILING_NONE) {
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
|
||||
"Failed to set tiling on %s: %s\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue