summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-11-30 06:47:27 -0800
committerEric Anholt <[email protected]>2011-12-07 13:36:57 -0800
commit4cb1d6a25e4749ec5e0389ca3da468adbbe5299e (patch)
treec38214a51b09e7a01fafc3c4a8367d2891e7431f
parentb48c3bca87b30003f9e117d299011380e743aec9 (diff)
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 <[email protected]>
-rw-r--r--src/mesa/drivers/dri/intel/intel_regions.c2
-rw-r--r--src/mesa/drivers/dri/intel/intel_regions.h6
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);