[Mesa-dev] [PATCH 09/16] freedreno: Set PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT to 64

Ian Romanick idr at freedesktop.org
Wed Jan 22 20:48:49 PST 2014


From: Ian Romanick <ian.d.romanick at intel.com>

Allocations actually have page alignment, but 64 is still a reasonable
value.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Cc: Rob Clark <robclark at freedesktop.org>
---
 src/gallium/drivers/freedreno/freedreno_screen.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index 3a155f1..f36bd8b 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -239,6 +239,9 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
 	case PIPE_CAP_ENDIANNESS:
 		return PIPE_ENDIAN_LITTLE;
 
+        case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
+		return 64;
+
 	default:
 		DBG("unknown param %d", param);
 		return 0;
-- 
1.8.1.4



More information about the mesa-dev mailing list