mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
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:
parent
c2d0662eb8
commit
3bd5968b5c
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue