freedreno: set alignment to next POT

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20153>
This commit is contained in:
Rohan Garg 2023-01-20 11:33:16 +01:00 committed by Marge Bot
parent c2d0662eb8
commit 3bd5968b5c

View file

@ -310,8 +310,10 @@ emit_border_color(struct fd_context *ctx, struct fd_ringbuffer *ring) assert_dt
STATIC_ASSERT(sizeof(struct bcolor_entry) == FD5_BORDER_COLOR_SIZE);
const unsigned int alignment =
util_next_power_of_two(FD5_BORDER_COLOR_UPLOAD_SIZE);
u_upload_alloc(fd5_ctx->border_color_uploader, 0,
FD5_BORDER_COLOR_UPLOAD_SIZE, FD5_BORDER_COLOR_UPLOAD_SIZE,
FD5_BORDER_COLOR_UPLOAD_SIZE, alignment,
&off, &fd5_ctx->border_color_buf, &ptr);
entries = ptr;