summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915/intel_regions.h
diff options
context:
space:
mode:
authorKeith Packard <[email protected]>2013-06-03 20:59:31 -0700
committerEric Anholt <[email protected]>2013-11-07 19:08:09 -0800
commitbf6591e948d95b73c5b8d10fa448ec87e9572b8e (patch)
treee11e022f27a3c8bd016dd8c377a373818ac9db4f /src/mesa/drivers/dri/i915/intel_regions.h
parent888533dcd6fe30fc0729ef4ae8fa495c69dcc629 (diff)
dri/intel: Add explicit size parameter to intel_region_alloc_for_fd
Instead of assuming that the size will be height * pitch, have the caller pass in the size explicitly. Signed-off-by: Keith Packard <[email protected]> Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_regions.h')
-rw-r--r--src/mesa/drivers/dri/i915/intel_regions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_regions.h b/src/mesa/drivers/dri/i915/intel_regions.h
index 5c612a925b9..6bc4a426a7e 100644
--- a/src/mesa/drivers/dri/i915/intel_regions.h
+++ b/src/mesa/drivers/dri/i915/intel_regions.h
@@ -91,7 +91,7 @@ struct intel_region *
intel_region_alloc_for_fd(struct intel_screen *screen,
GLuint cpp,
GLuint width, GLuint height, GLuint pitch,
- int fd, const char *name);
+ GLuint size, int fd, const char *name);
bool
intel_region_flink(struct intel_region *region, uint32_t *name);