From: Eric Anholt Date: Wed, 30 Nov 2011 14:47:27 +0000 (-0800) Subject: intel: Make intel_region_map return void *. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4cb1d6a25e4749ec5e0389ca3da468adbbe5299e;p=mesa.git 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 --- 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);