From 4cb1d6a25e4749ec5e0389ca3da468adbbe5299e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 30 Nov 2011 06:47:27 -0800 Subject: [PATCH] intel: Make intel_region_map return void *. We don't gripe about void * arithmetic for our driver, and this prevents silly casting when assigning the result of mapping to non-byte types. Reviewed-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_regions.c | 2 +- src/mesa/drivers/dri/intel/intel_regions.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_regions.c b/src/mesa/drivers/dri/intel/intel_regions.c index 0b9ffe87a6b..bc83649d608 100644 --- a/src/mesa/drivers/dri/intel/intel_regions.c +++ b/src/mesa/drivers/dri/intel/intel_regions.c @@ -108,7 +108,7 @@ debug_backtrace(void) /* XXX: Thread safety? */ -GLubyte * +void * intel_region_map(struct intel_context *intel, struct intel_region *region, GLbitfield mode) { diff --git a/src/mesa/drivers/dri/intel/intel_regions.h b/src/mesa/drivers/dri/intel/intel_regions.h index 06e76acde29..8c7e13862e5 100644 --- a/src/mesa/drivers/dri/intel/intel_regions.h +++ b/src/mesa/drivers/dri/intel/intel_regions.h @@ -100,9 +100,9 @@ void intel_recreate_static_regions(struct intel_context *intel); * * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT */ -GLubyte *intel_region_map(struct intel_context *intel, - struct intel_region *ib, - GLbitfield mode); +void *intel_region_map(struct intel_context *intel, + struct intel_region *ib, + GLbitfield mode); void intel_region_unmap(struct intel_context *intel, struct intel_region *ib); -- 2.30.2