From 7c1fcc41be15b6d648f84c8c1870a3a00575a48f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 17 Sep 2010 12:47:49 +1000 Subject: r600g: move constant buffer creation behind winsys abstraction. this paves the way for moving to pb bufmgrs now. --- src/gallium/drivers/r600/radeon.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r600/radeon.h') diff --git a/src/gallium/drivers/r600/radeon.h b/src/gallium/drivers/r600/radeon.h index be28ad19ff..36bfb747b5 100644 --- a/src/gallium/drivers/r600/radeon.h +++ b/src/gallium/drivers/r600/radeon.h @@ -21,6 +21,8 @@ #include +#include + typedef uint64_t u64; typedef uint32_t u32; typedef uint16_t u16; @@ -86,14 +88,15 @@ enum { }; enum radeon_family radeon_get_family(struct radeon *rw); +void radeon_set_mem_constant(struct radeon *radeon, boolean state); /* lowlevel WS bo */ struct radeon_ws_bo; struct radeon_ws_bo *radeon_ws_bo(struct radeon *radeon, - unsigned size, unsigned alignment); + unsigned size, unsigned alignment, unsigned usage); struct radeon_ws_bo *radeon_ws_bo_handle(struct radeon *radeon, unsigned handle); -void *radeon_ws_bo_map(struct radeon *radeon, struct radeon_ws_bo *bo); +void *radeon_ws_bo_map(struct radeon *radeon, struct radeon_ws_bo *bo, unsigned usage, void *ctx); void radeon_ws_bo_unmap(struct radeon *radeon, struct radeon_ws_bo *bo); void radeon_ws_bo_reference(struct radeon *radeon, struct radeon_ws_bo **dst, struct radeon_ws_bo *src); -- cgit v1.2.3