Skip to content
Snippets Groups Projects
Commit 2f175bfe authored by Rob Clark's avatar Rob Clark :speech_balloon:
Browse files

freedreno/a5xx: don't align height for PIPE_BUFFER


Buffers can be large, so we probably don't want to make them all 32x
bigger.  But they can't be rendered to (at least in GL) so we don't
need this workaround to prevent page faults on mem<->gmem.

Cc: "18.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 1866f76f
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ setup_slices(struct fd_resource *rsc, uint32_t alignment, enum pipe_format forma
* The pitch is already sufficiently aligned, but height
* may not be:
*/
if (level == prsc->last_level)
if ((level == prsc->last_level) && (prsc->target != PIPE_BUFFER))
aligned_height = align(aligned_height, 32);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment