Module: Mesa
Branch: master
Commit: 2f175bfe5d8ca59a8a68b6d6d072cd7bf2f8baa9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f175bfe5d8ca59a8a68b6d6d072cd7bf2f8baa9

Author: Rob Clark <robdcl...@gmail.com>
Date:   Sun Apr  1 11:26:01 2018 -0400

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-sta...@lists.freedesktop.org>
Signed-off-by: Rob Clark <robdcl...@gmail.com>

---

 src/gallium/drivers/freedreno/a5xx/fd5_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_resource.c 
b/src/gallium/drivers/freedreno/a5xx/fd5_resource.c
index 84fa64cec8..71bcc38152 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_resource.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_resource.c
@@ -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);
                }
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to