update to libdrm 2.4.54
ok matthieu@
This commit is contained in:
parent
a63d3546e5
commit
7391d4da2b
@ -1,6 +1,6 @@
|
||||
# $OpenBSD: Makefile.inc,v 1.11 2014/04/11 06:15:17 jsg Exp $
|
||||
# $OpenBSD: Makefile.inc,v 1.12 2014/05/13 05:44:06 jsg Exp $
|
||||
|
||||
PACKAGE_VERSION= 2.4.53
|
||||
PACKAGE_VERSION= 2.4.54
|
||||
|
||||
NOPROFILE=
|
||||
|
||||
|
@ -505,7 +505,7 @@ alloc_backing_store(drm_intel_bo *bo)
|
||||
|
||||
bo_fake->backing_store = malloc(bo->size);
|
||||
|
||||
DBG("alloc_backing - buf %d %p %d\n", bo_fake->id,
|
||||
DBG("alloc_backing - buf %d %p %lu\n", bo_fake->id,
|
||||
bo_fake->backing_store, bo->size);
|
||||
assert(bo_fake->backing_store);
|
||||
}
|
||||
@ -716,7 +716,7 @@ evict_and_alloc_block(drm_intel_bo *bo)
|
||||
if (alloc_block(bo))
|
||||
return 1;
|
||||
|
||||
DBG("%s 0x%x bytes failed\n", __FUNCTION__, bo->size);
|
||||
DBG("%s 0x%lx bytes failed\n", __FUNCTION__, bo->size);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -835,7 +835,7 @@ drm_intel_fake_bo_alloc(drm_intel_bufmgr *bufmgr,
|
||||
bo_fake->flags = 0;
|
||||
bo_fake->is_static = 0;
|
||||
|
||||
DBG("drm_bo_alloc: (buf %d: %s, %d kb)\n", bo_fake->id, bo_fake->name,
|
||||
DBG("drm_bo_alloc: (buf %d: %s, %lu kb)\n", bo_fake->id, bo_fake->name,
|
||||
bo_fake->bo.size / 1024);
|
||||
|
||||
return &bo_fake->bo;
|
||||
@ -894,7 +894,7 @@ drm_intel_bo_fake_alloc_static(drm_intel_bufmgr *bufmgr,
|
||||
bo_fake->flags = BM_PINNED;
|
||||
bo_fake->is_static = 1;
|
||||
|
||||
DBG("drm_bo_alloc_static: (buf %d: %s, %d kb)\n", bo_fake->id,
|
||||
DBG("drm_bo_alloc_static: (buf %d: %s, %lu kb)\n", bo_fake->id,
|
||||
bo_fake->name, bo_fake->bo.size / 1024);
|
||||
|
||||
return &bo_fake->bo;
|
||||
@ -1022,7 +1022,7 @@ static int
|
||||
return 0;
|
||||
|
||||
{
|
||||
DBG("drm_bo_map: (buf %d: %s, %d kb)\n", bo_fake->id,
|
||||
DBG("drm_bo_map: (buf %d: %s, %lu kb)\n", bo_fake->id,
|
||||
bo_fake->name, bo_fake->bo.size / 1024);
|
||||
|
||||
if (bo->virtual != NULL) {
|
||||
@ -1100,7 +1100,7 @@ static int
|
||||
if (--bo_fake->map_count != 0)
|
||||
return 0;
|
||||
|
||||
DBG("drm_bo_unmap: (buf %d: %s, %d kb)\n", bo_fake->id, bo_fake->name,
|
||||
DBG("drm_bo_unmap: (buf %d: %s, %lu kb)\n", bo_fake->id, bo_fake->name,
|
||||
bo_fake->bo.size / 1024);
|
||||
|
||||
bo->virtual = NULL;
|
||||
@ -1167,7 +1167,7 @@ static int
|
||||
|
||||
bufmgr_fake = (drm_intel_bufmgr_fake *) bo->bufmgr;
|
||||
|
||||
DBG("drm_bo_validate: (buf %d: %s, %d kb)\n", bo_fake->id,
|
||||
DBG("drm_bo_validate: (buf %d: %s, %lu kb)\n", bo_fake->id,
|
||||
bo_fake->name, bo_fake->bo.size / 1024);
|
||||
|
||||
/* Sanity check: Buffers should be unmapped before being validated.
|
||||
@ -1197,7 +1197,7 @@ static int
|
||||
|
||||
/* Upload the buffer contents if necessary */
|
||||
if (bo_fake->dirty) {
|
||||
DBG("Upload dirty buf %d:%s, sz %d offset 0x%x\n", bo_fake->id,
|
||||
DBG("Upload dirty buf %d:%s, sz %lu offset 0x%x\n", bo_fake->id,
|
||||
bo_fake->name, bo->size, bo_fake->block->mem->ofs);
|
||||
|
||||
assert(!(bo_fake->flags & (BM_NO_BACKING_STORE | BM_PINNED)));
|
||||
@ -1522,12 +1522,12 @@ drm_intel_fake_check_aperture_space(drm_intel_bo ** bo_array, int count)
|
||||
}
|
||||
|
||||
if (sz > bufmgr_fake->size) {
|
||||
DBG("check_space: overflowed bufmgr size, %dkb vs %dkb\n",
|
||||
DBG("check_space: overflowed bufmgr size, %ukb vs %lukb\n",
|
||||
sz / 1024, bufmgr_fake->size / 1024);
|
||||
return -1;
|
||||
}
|
||||
|
||||
DBG("drm_check_space: sz %dkb vs bufgr %dkb\n", sz / 1024,
|
||||
DBG("drm_check_space: sz %ukb vs bufgr %lukb\n", sz / 1024,
|
||||
bufmgr_fake->size / 1024);
|
||||
return 0;
|
||||
}
|
||||
|
@ -160,6 +160,11 @@
|
||||
#define PCI_CHIP_VALLEYVIEW_2 0x0f32
|
||||
#define PCI_CHIP_VALLEYVIEW_3 0x0f33
|
||||
|
||||
#define PCI_CHIP_CHERRYVIEW_0 0x22b0
|
||||
#define PCI_CHIP_CHERRYVIEW_1 0x22b1
|
||||
#define PCI_CHIP_CHERRYVIEW_2 0x22b2
|
||||
#define PCI_CHIP_CHERRYVIEW_3 0x22b3
|
||||
|
||||
#define IS_MOBILE(devid) ((devid) == PCI_CHIP_I855_GM || \
|
||||
(devid) == PCI_CHIP_I915_GM || \
|
||||
(devid) == PCI_CHIP_I945_GM || \
|
||||
@ -311,8 +316,13 @@
|
||||
((devid & 0x000f) == BDW_WORKSTATION) ? 1 : \
|
||||
((devid & 0x000f) == BDW_ULX) ? 1 : 0)
|
||||
|
||||
#define IS_CHERRYVIEW(devid) ((devid) == PCI_CHIP_CHERRYVIEW_0 || \
|
||||
(devid) == PCI_CHIP_CHERRYVIEW_1 || \
|
||||
(devid) == PCI_CHIP_CHERRYVIEW_2 || \
|
||||
(devid) == PCI_CHIP_CHERRYVIEW_3)
|
||||
|
||||
#define IS_GEN8(devid) IS_BROADWELL(devid)
|
||||
#define IS_GEN8(devid) (IS_BROADWELL(devid) || \
|
||||
IS_CHERRYVIEW(devid))
|
||||
|
||||
#define IS_9XX(dev) (IS_GEN3(dev) || \
|
||||
IS_GEN4(dev) || \
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "xf86drm.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "intel_bufmgr.h"
|
||||
|
||||
@ -104,11 +105,7 @@ static float int_as_float(uint32_t intval)
|
||||
return uval.f;
|
||||
}
|
||||
|
||||
static void
|
||||
instr_out(struct drm_intel_decode *ctx, unsigned int index,
|
||||
const char *fmt, ...) __attribute__((format(__printf__, 3, 4)));
|
||||
|
||||
static void
|
||||
static void DRM_PRINTFLIKE(3, 4)
|
||||
instr_out(struct drm_intel_decode *ctx, unsigned int index,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
|
@ -425,6 +425,23 @@ CHIPSET(0x983D, KABINI_983D, KABINI)
|
||||
CHIPSET(0x983E, KABINI_983E, KABINI)
|
||||
CHIPSET(0x983F, KABINI_983F, KABINI)
|
||||
|
||||
CHIPSET(0x9850, MULLINS_9850, MULLINS)
|
||||
CHIPSET(0x9851, MULLINS_9851, MULLINS)
|
||||
CHIPSET(0x9852, MULLINS_9852, MULLINS)
|
||||
CHIPSET(0x9853, MULLINS_9853, MULLINS)
|
||||
CHIPSET(0x9854, MULLINS_9854, MULLINS)
|
||||
CHIPSET(0x9855, MULLINS_9855, MULLINS)
|
||||
CHIPSET(0x9856, MULLINS_9856, MULLINS)
|
||||
CHIPSET(0x9857, MULLINS_9857, MULLINS)
|
||||
CHIPSET(0x9858, MULLINS_9858, MULLINS)
|
||||
CHIPSET(0x9859, MULLINS_9859, MULLINS)
|
||||
CHIPSET(0x985A, MULLINS_985A, MULLINS)
|
||||
CHIPSET(0x985B, MULLINS_985B, MULLINS)
|
||||
CHIPSET(0x985C, MULLINS_985C, MULLINS)
|
||||
CHIPSET(0x985D, MULLINS_985D, MULLINS)
|
||||
CHIPSET(0x985E, MULLINS_985E, MULLINS)
|
||||
CHIPSET(0x985F, MULLINS_985F, MULLINS)
|
||||
|
||||
CHIPSET(0x1304, KAVERI_1304, KAVERI)
|
||||
CHIPSET(0x1305, KAVERI_1305, KAVERI)
|
||||
CHIPSET(0x1306, KAVERI_1306, KAVERI)
|
||||
|
@ -80,6 +80,7 @@ enum radeon_family {
|
||||
CHIP_KAVERI,
|
||||
CHIP_KABINI,
|
||||
CHIP_HAWAII,
|
||||
CHIP_MULLINS,
|
||||
CHIP_LAST,
|
||||
};
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
major=4
|
||||
minor=1
|
||||
major=5
|
||||
minor=0
|
||||
|
@ -100,12 +100,16 @@ void drmSetServerInfo(drmServerInfoPtr info)
|
||||
* This function is a wrapper around vfprintf().
|
||||
*/
|
||||
|
||||
static int drmDebugPrint(const char *format, va_list ap)
|
||||
static int DRM_PRINTFLIKE(1, 0)
|
||||
drmDebugPrint(const char *format, va_list ap)
|
||||
{
|
||||
return vfprintf(stderr, format, ap);
|
||||
}
|
||||
|
||||
static int (*drm_debug_print)(const char *format, va_list ap) = drmDebugPrint;
|
||||
typedef int DRM_PRINTFLIKE(1, 0) (*debug_msg_func_t)(const char *format,
|
||||
va_list ap);
|
||||
|
||||
static debug_msg_func_t drm_debug_print = drmDebugPrint;
|
||||
|
||||
void
|
||||
drmMsg(const char *format, ...)
|
||||
@ -125,7 +129,7 @@ drmMsg(const char *format, ...)
|
||||
}
|
||||
|
||||
void
|
||||
drmSetDebugMsgFunction(int (*debug_msg_ptr)(const char *format, va_list ap))
|
||||
drmSetDebugMsgFunction(debug_msg_func_t debug_msg_ptr)
|
||||
{
|
||||
drm_debug_print = debug_msg_ptr;
|
||||
}
|
||||
@ -506,7 +510,7 @@ static int drmOpenByBusid(const char *busid)
|
||||
sv.drm_di_minor = 1;
|
||||
sv.drm_dd_major = -1; /* Don't care */
|
||||
sv.drm_dd_minor = -1; /* Don't care */
|
||||
drmMsg("drmOpenByBusid: Interface 1.4 failed, trying 1.1\n",fd);
|
||||
drmMsg("drmOpenByBusid: Interface 1.4 failed, trying 1.1\n");
|
||||
drmSetInterfaceVersion(fd, &sv);
|
||||
}
|
||||
buf = drmGetBusid(fd);
|
||||
|
@ -704,7 +704,7 @@ extern int drmSLLookupNeighbors(void *l, unsigned long key,
|
||||
|
||||
extern int drmOpenOnce(void *unused, const char *BusID, int *newlyopened);
|
||||
extern void drmCloseOnce(int fd);
|
||||
extern void drmMsg(const char *format, ...);
|
||||
extern void drmMsg(const char *format, ...) DRM_PRINTFLIKE(1, 2);
|
||||
|
||||
extern int drmSetMaster(int fd);
|
||||
extern int drmDropMaster(int fd);
|
||||
|
@ -923,7 +923,7 @@ int drmModePageFlip(int fd, uint32_t crtc_id, uint32_t fb_id,
|
||||
|
||||
int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
|
||||
uint32_t fb_id, uint32_t flags,
|
||||
uint32_t crtc_x, uint32_t crtc_y,
|
||||
int32_t crtc_x, int32_t crtc_y,
|
||||
uint32_t crtc_w, uint32_t crtc_h,
|
||||
uint32_t src_x, uint32_t src_y,
|
||||
uint32_t src_w, uint32_t src_h)
|
||||
|
@ -445,7 +445,7 @@ extern drmModePlaneResPtr drmModeGetPlaneResources(int fd);
|
||||
extern drmModePlanePtr drmModeGetPlane(int fd, uint32_t plane_id);
|
||||
extern int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
|
||||
uint32_t fb_id, uint32_t flags,
|
||||
uint32_t crtc_x, uint32_t crtc_y,
|
||||
int32_t crtc_x, int32_t crtc_y,
|
||||
uint32_t crtc_w, uint32_t crtc_h,
|
||||
uint32_t src_x, uint32_t src_y,
|
||||
uint32_t src_w, uint32_t src_h);
|
||||
|
Loading…
Reference in New Issue
Block a user