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 <chad.versace@linux.intel.com>
This commit is contained in:
parent
b48c3bca87
commit
4cb1d6a25e
|
@ -108,7 +108,7 @@ debug_backtrace(void)
|
||||||
|
|
||||||
/* XXX: Thread safety?
|
/* XXX: Thread safety?
|
||||||
*/
|
*/
|
||||||
GLubyte *
|
void *
|
||||||
intel_region_map(struct intel_context *intel, struct intel_region *region,
|
intel_region_map(struct intel_context *intel, struct intel_region *region,
|
||||||
GLbitfield mode)
|
GLbitfield mode)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
* \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT
|
||||||
*/
|
*/
|
||||||
GLubyte *intel_region_map(struct intel_context *intel,
|
void *intel_region_map(struct intel_context *intel,
|
||||||
struct intel_region *ib,
|
struct intel_region *ib,
|
||||||
GLbitfield mode);
|
GLbitfield mode);
|
||||||
|
|
||||||
void intel_region_unmap(struct intel_context *intel, struct intel_region *ib);
|
void intel_region_unmap(struct intel_context *intel, struct intel_region *ib);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue