From 44ecbbebe29becd2ec59693db82e010c32ecfbac Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 11 Apr 2017 00:02:35 -0700 Subject: i965/drm: Make brw_bo_alloc_tiled flags parameter 32-bit. unsigned long is a terrible type for a bitfield - if you need fewer than 32 bits, it wastes 4 bytes. If you need more, things break on 32-bit builds. Just use unsigned. Even that's a bit ridiculous as we only have one flag today. Still, it's at least somewhat better. Reviewed-by: Chris Wilson --- src/mesa/drivers/dri/i965/brw_bufmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/i965/brw_bufmgr.c') diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c index 391de547f6b..7f2aa9d85ec 100644 --- a/src/mesa/drivers/dri/i965/brw_bufmgr.c +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c @@ -245,7 +245,7 @@ static struct brw_bo * bo_alloc_internal(struct brw_bufmgr *bufmgr, const char *name, uint64_t size, - unsigned long flags, + unsigned flags, uint32_t tiling_mode, uint32_t stride, uint64_t alignment) { @@ -377,7 +377,7 @@ brw_bo_alloc(struct brw_bufmgr *bufmgr, struct brw_bo * brw_bo_alloc_tiled(struct brw_bufmgr *bufmgr, const char *name, int x, int y, int cpp, uint32_t tiling, - uint32_t *pitch, unsigned long flags) + uint32_t *pitch, unsigned flags) { uint64_t size; uint32_t stride; -- cgit v1.2.3