diff options
author | Ian Romanick <[email protected]> | 2014-01-22 08:28:49 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-01-23 08:50:58 -0800 |
commit | e4fcae0755d8a369b657f2ada22815ea77312fbe (patch) | |
tree | 1e523497c42bc589517dc3764d10fe755eabe1de /src | |
parent | 7a0f26dec9aad75834d3314d5e306d49729b37f1 (diff) |
mesa: Set gl_constants::MinMapBufferAlignment
Leaving it set to zero isn't really correct since every allocation has
at least an alignment of 1 byte. It also caused a problem in the i965
driver after I removed the MAX(64, ...) from the alignment calculation.
That's what I get for changing a patch without retesting it. :(
Signed-off-by: Ian Romanick <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73907
Reviewed-by: Kenneth Graunke <[email protected]>
Cc: Lu Hua <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 7c3b2d74f7c..b7cd5686685 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -587,6 +587,7 @@ _mesa_init_constants(struct gl_context *ctx) ctx->Const.MaxSpotExponent = 128.0; ctx->Const.MaxViewportWidth = MAX_VIEWPORT_WIDTH; ctx->Const.MaxViewportHeight = MAX_VIEWPORT_HEIGHT; + ctx->Const.MinMapBufferAlignment = 1; /* Driver must override these values if ARB_viewport_array is supported. */ ctx->Const.MaxViewports = 1; |